Cache System
AbstractCacheServer{K, ELT}
Yao.CacheServers.alloc!
— Method.alloc!(server, object, storage) -> server
alloc new storage on the server.
Yao.CacheServers.iscacheable
— Method.iscacheable(server, object)
check if there is available space to storage this object's value. (if this object was allocated on the server before.).
Yao.CacheServers.iscached
— Method.iscached(server, object, [params...])
check if this object (with params) is already cached.
Yao.CacheServers.pull
— Method.pull(server, object, params...) -> value
pull object
storage from server.
Yao.CacheServers.update!
— Method.update!(storage, val) -> storage
Base.Distributed.clear!
— Method.clear!(server, object) -> server
clear the storage in the server
of this object
.
Base.delete!
— Method.delete!(server, object) -> server
delete this object from the server. (the storage will be deleted)
Base.push!
— Method.push!(server, val, object) -> server
push val
to the storage of object
in the server
.