Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Commit

Permalink
Fixing CRLF issues once and for all
Browse files Browse the repository at this point in the history
  • Loading branch information
raykrueger committed Feb 27, 2010
1 parent a88b3ab commit 0f0d909
Show file tree
Hide file tree
Showing 16 changed files with 1,266 additions and 1,266 deletions.
402 changes: 201 additions & 201 deletions LICENSE.txt

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package com.googlecode.hibernate.memcached;

/**
* Transforms the key object using key.hashCode()
*
* @author Ray Krueger
*/
public class HashCodeKeyStrategy extends AbstractKeyStrategy {

protected String transformKeyObject(Object key) {
int hashCode = key.hashCode();
log.debug("Transformed key [{}] to hashCode [{}]", key, hashCode);
return String.valueOf(hashCode);
}

}
package com.googlecode.hibernate.memcached;

/**
* Transforms the key object using key.hashCode()
*
* @author Ray Krueger
*/
public class HashCodeKeyStrategy extends AbstractKeyStrategy {

protected String transformKeyObject(Object key) {
int hashCode = key.hashCode();
log.debug("Transformed key [{}] to hashCode [{}]", key, hashCode);
return String.valueOf(hashCode);
}

}
22 changes: 11 additions & 11 deletions src/main/java/com/googlecode/hibernate/memcached/KeyStrategy.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.googlecode.hibernate.memcached;

/**
* Strategy interface for parsing the parts used by {@link MemcachedCache} to generate cache keys.
*
* @author Ray Krueger
*/
public interface KeyStrategy {

String toKey(String regionName, long clearIndex, Object key);
}
package com.googlecode.hibernate.memcached;

/**
* Strategy interface for parsing the parts used by {@link MemcachedCache} to generate cache keys.
*
* @author Ray Krueger
*/
public interface KeyStrategy {

String toKey(String regionName, long clearIndex, Object key);
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package com.googlecode.hibernate.memcached;

/**
* Simple interface used to abstract the creation of the MemcachedClient
* All implementers must have a constructor that takes an instance of
* {@link com.googlecode.hibernate.memcached.PropertiesHelper}.
*
* @author Ray Krueger
*/
public interface MemcacheClientFactory {

Memcache createMemcacheClient() throws Exception;

}
package com.googlecode.hibernate.memcached;

/**
* Simple interface used to abstract the creation of the MemcachedClient
* All implementers must have a constructor that takes an instance of
* {@link com.googlecode.hibernate.memcached.PropertiesHelper}.
*
* @author Ray Krueger
*/
public interface MemcacheClientFactory {

Memcache createMemcacheClient() throws Exception;

}
Loading

0 comments on commit 0f0d909

Please sign in to comment.