org.mongodb.morphia.mapping.cache.DefaultEntityCacheFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of morphia Show documentation
Show all versions of morphia Show documentation
Java Object Document Mapper for MongoDB
The newest version!
package org.mongodb.morphia.mapping.cache;
/**
* Default implementation of cache factory, returning the default entity cache.
*/
public class DefaultEntityCacheFactory implements EntityCacheFactory {
/**
* Creates a new DefaultEntityCache
*
* @return the cache
*/
public EntityCache createCache() {
return new DefaultEntityCache();
}
}