-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
916 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Benchmark Mode Cnt Score Error Units | ||
o.g.c.h.p.b.cachetests.get.PerfTestApplyCommand.applyDefaultKetamaHashAlgoTest thrpt 60 21.335 ± 1.396 ops/ms | ||
o.g.c.h.p.b.cachetests.get.PerfTestApplyCommand.applyFolsomTest thrpt 60 21.315 ± 0.706 ops/ms | ||
o.g.c.h.p.b.cachetests.get.PerfTestApplyCommand.applyJenkinsHashAlgoTest thrpt 60 21.194 ± 0.873 ops/ms | ||
o.g.c.h.p.b.cachetests.get.PerfTestApplyCommand.applyXXHashAlgoTest thrpt 60 20.755 ± 0.340 ops/ms | ||
o.g.c.h.p.b.compression.SnappyPerfTest.iq80Compresss thrpt 60 57.897 ± 1.095 ops/ms | ||
o.g.c.h.p.b.compression.SnappyPerfTest.iq80Decompresss thrpt 60 123.656 ± 2.166 ops/ms | ||
o.g.c.h.p.b.compression.SnappyPerfTest.xerialCompress thrpt 60 81.231 ± 1.841 ops/ms | ||
o.g.c.h.p.b.compression.SnappyPerfTest.xerialDecompress thrpt 60 136.641 ± 3.344 ops/ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/org/greencheek/caching/herdcache/memcached/FolsomMemcachedCache.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.greencheek.caching.herdcache.memcached; | ||
|
||
import org.greencheek.caching.herdcache.memcached.config.ElastiCacheCacheConfig; | ||
import org.greencheek.caching.herdcache.memcached.factory.FolsomReferencedClientFactory; | ||
import org.greencheek.caching.herdcache.memcached.factory.SpyMemcachedClientFactory; | ||
|
||
/** | ||
* | ||
*/ | ||
public class FolsomMemcachedCache<V> extends BaseMemcachedCache<V> { | ||
public FolsomMemcachedCache(ElastiCacheCacheConfig config) { | ||
super(new SpyMemcachedClientFactory<V>(config.getMemcachedCacheConfig().getMemcachedHosts(), | ||
config.getMemcachedCacheConfig().getDnsConnectionTimeout(), config.getMemcachedCacheConfig().getHostStringParser(), | ||
config.getMemcachedCacheConfig().getHostResolver(), new FolsomReferencedClientFactory<V>(config)), config.getMemcachedCacheConfig()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.