public interface ICacheStore
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Allows for cleanup of a cache implementation.
|
ICacheable |
get(String name)
Return a cached object with the given name.
|
Iterator<String> |
getObjectNames()
Return iterator over the names of all already loaded objects in the storage.
|
Iterator<SoftReference<? extends ICacheable>> |
getObjects()
Return iterator over the already loaded objects in the storage.
|
boolean |
offer(String name,
Object obj)
Offer an object to the cache with an associated key.
|
void |
put(String name,
Object obj)
Puts an object in the cache with the associated key.
|
boolean |
remove(ICacheable obj)
Delete the passed cached object.
|
boolean |
remove(String name)
Delete the cached object with the given name.
|
void |
setMaxEntries(int max)
Sets the maximum number of entries for the cache.
|
boolean offer(String name, Object obj)
name - string name representing the objectobj - cacheable objectvoid put(String name, Object obj)
name - string name representing the objectobj - cacheable objectICacheable get(String name)
name - the name of the object to returnnull if no such object was foundboolean remove(ICacheable obj)
obj - the object to deleteboolean remove(String name)
name - the name of the object to deleteIterator<String> getObjectNames()
Iterator<SoftReference<? extends ICacheable>> getObjects()
void setMaxEntries(int max)
max - upper-limit of the cachevoid destroy()
Copyright © 2005–2017 Red5. All rights reserved.