edu.qut.cs.rcmd.common.mongo.cache
Class AutoFetchMongoCache<K,V>

java.lang.Object
  extended by edu.qut.cs.rcmd.common.mongo.cache.BaseMongoCache<K,V>
      extended by 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>


Field Summary
 
Fields inherited from class edu.qut.cs.rcmd.common.mongo.cache.BaseMongoCache
dbCollection
 
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 edu.qut.cs.rcmd.common.mongo.cache.BaseMongoCache
clear, containsKey, put, toKeyDBObject, toValue, toValueDBObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoFetchMongoCache

public AutoFetchMongoCache(com.mongodb.DBCollection dbCollection,
                           com.google.common.base.Function<K,V> fetchFunction)
Method Detail

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.