I need to write a new implementation against net.sf.jsr107cache.Cache using the Java net.spy.memcached package (for Redis Cloud Memcached). The package does not include an implementation this interface.
I can of course write an adapter and implement Cache myself, but there are some differences in functionality
Objectkeys, not justStringkeys, inCachebut not in Spyclear()putAll()size()
Given that both memcached and JSR-107 are standards -- there a standard way to adapt Spy to JSR-107?
Answer:
clear()is implemented withflush()putAll()may be implemented witha loop.size()is not available.