Cache System

Cache System

AbstractCacheServer{K, ELT}
source
alloc!(server, object, storage) -> server

alloc new storage on the server.

source
iscacheable(server, object)

check if there is available space to storage this object's value. (if this object was allocated on the server before.).

source
iscached(server, object, [params...])

check if this object (with params) is already cached.

source
pull(server, object, params...) -> value

pull object storage from server.

source
update!(storage, val) -> storage
source
clear!(server, object) -> server

clear the storage in the server of this object.

source
Base.delete!Method.
delete!(server, object) -> server

delete this object from the server. (the storage will be deleted)

source
Base.push!Method.
push!(server, val, object) -> server

push val to the storage of object in the server.

source