org.apache.commons.cache
Interface Stash
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- BaseStash, FileStash, MemoryStash, ShareableFileStash
public interface Stash
- extends Serializable
tk.
- Version:
- $Id: Stash.java 155435 2005-02-26 13:17:27Z dirkv $
- Author:
- Rodney Waldhoff
Method Summary |
int |
canStore(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group)
|
int |
canStore(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group,
byte[] serialized)
|
float |
capacity()
|
void |
clear()
|
void |
clear(Serializable key)
|
boolean |
contains(Serializable key)
|
Serializable |
retrieve(Serializable key)
|
void |
setCache(Cache c)
|
boolean |
store(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group)
|
boolean |
store(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group,
byte[] serialized)
|
void |
unsetCache()
|
boolean |
wantsSerializedForm()
|
YES
static final int YES
- See Also:
- Constant Field Values
NO_FULL
static final int NO_FULL
- See Also:
- Constant Field Values
NO_NOT_STORABLE
static final int NO_NOT_STORABLE
- See Also:
- Constant Field Values
NO
static final int NO
- See Also:
- Constant Field Values
canStore
int canStore(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group)
canStore
int canStore(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group,
byte[] serialized)
store
boolean store(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group)
store
boolean store(Serializable key,
Serializable val,
Long expiresAt,
Long cost,
Serializable group,
byte[] serialized)
retrieve
Serializable retrieve(Serializable key)
contains
boolean contains(Serializable key)
clear
void clear(Serializable key)
clear
void clear()
capacity
float capacity()
setCache
void setCache(Cache c)
unsetCache
void unsetCache()
wantsSerializedForm
boolean wantsSerializedForm()
Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.