com.jdon.controller.cache
接口 Cache

所有已知实现类:
EncacheProvider, GuavaCacheProvider, LRUCache

public interface Cache

Cache interface A Cache object is responsible for managing a collection of cached objects Given an ObjectKey object, a Cache object quickly finds the corresponding cached object. The Cache-Manager object passes an ObjectKey object to the Cache object’s fetchObject method to get a cached object from the cache

作者:
banq


方法摘要
 void clear()
           
 boolean contain(Object key)
           
 Object get(Object key)
           
 long getCacheHits()
           
 long getCacheMisses()
           
 Collection keySet()
           
 void put(Object key, Object value)
           
 void remove(Object key)
           
 long size()
           
 

方法详细信息

get

Object get(Object key)

put

void put(Object key,
         Object value)

remove

void remove(Object key)

size

long size()

clear

void clear()

contain

boolean contain(Object key)

keySet

Collection keySet()

getCacheHits

long getCacheHits()

getCacheMisses

long getCacheMisses()


Copyright © 2013. All Rights Reserved.