hibernate-memcached

A library for using Memcached as a second level distributed cache in Hibernate.

License

License

Categories

Categories

Hibernate Data ORM
GroupId

GroupId

com.googlecode
ArtifactId

ArtifactId

hibernate-memcached
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

hibernate-memcached
A library for using Memcached as a second level distributed cache in Hibernate.
Project URL

Project URL

http://code.google.com/p/hibernate-memcached/
Source Code Management

Source Code Management

http://github.com/raykrueger/hibernate-memcached/

Download hibernate-memcached

How to add to project

<!-- https://jarcasting.com/artifacts/com.googlecode/hibernate-memcached/ -->
<dependency>
    <groupId>com.googlecode</groupId>
    <artifactId>hibernate-memcached</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/com.googlecode/hibernate-memcached/
implementation 'com.googlecode:hibernate-memcached:1.3'
// https://jarcasting.com/artifacts/com.googlecode/hibernate-memcached/
implementation ("com.googlecode:hibernate-memcached:1.3")
'com.googlecode:hibernate-memcached:jar:1.3'
<dependency org="com.googlecode" name="hibernate-memcached" rev="1.3">
  <artifact name="hibernate-memcached" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.googlecode', module='hibernate-memcached', version='1.3')
)
libraryDependencies += "com.googlecode" % "hibernate-memcached" % "1.3"
[com.googlecode/hibernate-memcached "1.3"]

Dependencies

compile (3)

Group / Artifact Type Version
spy » spymemcached jar 2.7.1
org.slf4j : slf4j-api jar 1.5.6
org.hibernate : hibernate jar 3.2.6.ga

provided (1)

Group / Artifact Type Version
com.danga » java_memcached jar 2.0.1

test (5)

Group / Artifact Type Version
org.hibernate : hibernate-annotations jar 3.3.1.GA
org.slf4j : slf4j-log4j12 jar 1.5.6
junit : junit jar 4.4
hsqldb : hsqldb jar 1.8.0.7
org.codehaus.groovy : groovy-all jar 1.6.3

Project Modules

There are no modules declared in this project.

Hibernate-memcached

A library for using Memcached as a second level distributed cache in Hibernate.

  • Based on the excellent spymemcached client
  • Includes support for the Whalin (danga) memcached client
  • Supports entity and query caching.

Help

If you have any questions, or just want to drop a line to say it's working great :) use the google-group.

Please note that this is an open source project. I work on it when I can and I implement what I feel like. I am volunteering my own free time for my own amusement.

Versions

1.3

As a result of these changes hibernate-memcached will miss on all cache requests upon upgrading to this version. This is due to the switch to Sha1KeyStrategy as the default. Hibernate-memcached will now generate different keys for the same data you were caching previously. Essentially, your cache will appear empty to Hibernate.

Also, as a result of these changes, 1.3 may not be binary compatible with any subclass hacks you may have written that extend HashCodeKeyStrategy, StringKeyStrategy, Md5KeyStrategy, or Sha1KeyStrategy. Note that the KeyStrategy interface and AbstractKeyStrategy have not changed at all. If you implemented/extended those directly you're fine.

  • Patch from @burtbeckwith to allow for memcached authentication via the spymemcached client. This can be specified using "hibernate.memcached.username" and "hibernate.memcached.password"

1.2.2

  • Patch from ddlatham to allow the spymemcached library to be put into daemon mode. This is accomplished by setting hibernate.memcached.daemonMode to true.
  • Updated the maven pom to pull in spymemcached 2.4.2 by default.

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with pom.xml, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Versions

Version
1.3