Package com.cksource.ckfinder.cache
Interface Cache
- All Known Implementing Classes:
BackendCache
public interface Cache
Cache storage interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changePrefix
(String oldPrefix, String newPrefix) Changes the prefix of all cache entries stored under given prefix.boolean
void
Removes the data stored under given key.void
removeByPrefix
(String prefix) Removes all cache entries that share the same key prefix.void
set
(String key, InputStream in) void
-
Method Details
-
has
- Parameters:
key
- cache key to check- Returns:
- true if cache contains value under given key
-
get
- Parameters:
key
- cache key- Returns:
- stream of data stored under given key
-
set
- Parameters:
key
- cache keyin
- stream of data to store under given key
-
set
- Parameters:
key
- cache keyvalue
- string value to store under given key
-
remove
Removes the data stored under given key.- Parameters:
key
- cache key
-
changePrefix
Changes the prefix of all cache entries stored under given prefix.- Parameters:
oldPrefix
- cache key prefix to changenewPrefix
- new cache key prefix
-
removeByPrefix
Removes all cache entries that share the same key prefix.- Parameters:
prefix
- cache key prefix
-