ocean v6.2.0 (2021-12-09T10:56:40Z)
Home
Dub
Repo
Cache.CacheItem
ocean
util
container
cache
Cache
Cache
Cached item struct, storing a key and value.
class
Cache
(size_t ValueSize = 0, bool TrackCreateTimes = false)
struct
CacheItem {
hash_t
key
;
Value
value
;
static if
(
TrackCreateTimes
)
time_t
create_time
;
ValueRef
setValue
(Value value);
static if
(
is_dynamic
)
ValueRef
value_ref
();
static if
(!(
is_dynamic
))
ValueRef
value_ref
();
}
Members
Functions
setValue
ValueRef
setValue
(Value value)
Copies value to this.value.
value_ref
ValueRef
value_ref
()
Undocumented in source. Be warned that the author may not have intended to support it.
value_ref
ValueRef
value_ref
()
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
create_time
time_t
create_time
;
Undocumented in source.
key
hash_t
key
;
Undocumented in source.
value
Value
value
;
Undocumented in source.
Meta
Source
See Implementation
ocean
util
container
cache
Cache
Cache
constructors
this
functions
access
add
createRaw
createTime
dumpTimes
enableGcValueScanning
getItem
getOrCreateRaw
getRaw
get__
keyByIndex
replaceRemovedItem
mixins
__anonymous
structs
CacheItem
Cached item struct, storing a key and value.