retain
Parameters
- self:*Cache
- *Cache
- gpa:std.mem.Allocator
- std.mem.Allocator
- key:Key
- Key
- retain_token:?dvui.data.Token
- ?dvui.data.Token
Source
Implementation
pub fn retain(self: *Cache, gpa: std.mem.Allocator, key: Key, retain_token: ?dvui.data.Token) std.mem.Allocator.Error!void {
try self.cache.retain(gpa, key, retain_token);
}