cachetools v0.1.1 (2019-01-11T13:20:18Z)
Dub
Repo
Cache2Q.put
cachetools
cache2q
Cache2Q
Put element to cache.
Evict something if we have to.
class
Cache2Q
(K, V, Allocator = Mallocator)
final
PutResult
put
@
safe
(
K
k
,
V
v
,
TTL
ttl
=
TTL
()
)
out { assert (__result != PutResult(PutResultFlag.None)); }
Meta
Source
See Implementation
cachetools
cache2q
Cache2Q
functions
cacheEvents
clear
enableCacheEvents
get
length
put
remove
size
sizeIn
sizeMain
sizeOut
ttl
Put element to cache.
Evict something if we have to.