AndBase开发框架  1.6
 全部  命名空间 文件 函数 变量 枚举值 
| Public 成员函数 | 所有成员列表
com.ab.network.toolbox.Cache接口 参考
类 com.ab.network.toolbox.Cache 继承关系图:
com.ab.network.toolbox.DiskBasedCache

class  Entry
 

Public 成员函数

Entry get (String key)
 
void put (String key, Entry entry)
 
void initialize ()
 
void invalidate (String key, boolean fullExpire)
 
void remove (String key)
 
void clear ()
 

详细描述

An interface for a cache keyed by a String with a byte array as data.

成员函数说明

void com.ab.network.toolbox.Cache.clear ( )

Empties the cache.

com.ab.network.toolbox.DiskBasedCache 内被实现.

Entry com.ab.network.toolbox.Cache.get ( String  key)

Retrieves an entry from the cache.

参数
keyCache key
返回
An Entry or null in the event of a cache miss

com.ab.network.toolbox.DiskBasedCache 内被实现.

void com.ab.network.toolbox.Cache.initialize ( )

Performs any potentially long-running actions needed to initialize the cache; will be called from a worker thread.

com.ab.network.toolbox.DiskBasedCache 内被实现.

void com.ab.network.toolbox.Cache.invalidate ( String  key,
boolean  fullExpire 
)

Invalidates an entry in the cache.

参数
keyCache key
fullExpireTrue to fully expire the entry, false to soft expire

com.ab.network.toolbox.DiskBasedCache 内被实现.

void com.ab.network.toolbox.Cache.put ( String  key,
Entry  entry 
)

Adds or replaces an entry to the cache.

参数
keyCache key
entryData to store and metadata for cache coherency, TTL, etc.

com.ab.network.toolbox.DiskBasedCache 内被实现.

void com.ab.network.toolbox.Cache.remove ( String  key)

Removes an entry from the cache.

参数
keyCache key

com.ab.network.toolbox.DiskBasedCache 内被实现.


该接口的文档由以下文件生成: