edu.qut.cs.rcmd.common.mongo.cache
Class AutoFetchMongoCache<K,V>
java.lang.Object
edu.qut.cs.rcmd.common.mongo.cache.BaseMongoCache<K,V>
edu.qut.cs.rcmd.common.mongo.cache.AutoFetchMongoCache<K,V>
- All Implemented Interfaces:
- MongoCache<K,V>
public class AutoFetchMongoCache<K,V>
- extends BaseMongoCache<K,V>
Constructor Summary |
AutoFetchMongoCache(com.mongodb.DBCollection dbCollection,
com.google.common.base.Function<K,V> fetchFunction)
|
Method Summary |
V |
get(K key)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoFetchMongoCache
public AutoFetchMongoCache(com.mongodb.DBCollection dbCollection,
com.google.common.base.Function<K,V> fetchFunction)
get
public V get(K key)
- Specified by:
get
in interface MongoCache<K,V>
- Overrides:
get
in class BaseMongoCache<K,V>
Copyright © 2012. All Rights Reserved.