crash.software
Projects
Pull Requests
Issues
Builds
dolt
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
dolt
Files
🤬
Sign In
v0.50.6
ROOT
/
go
/
store
/
util
/
sizecache
/
size_cache.go
Search
History
146 lines
|
ISO-8859-1
|
4 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
sizeCacheEntry
size
:
uint64
lruEntry
:
*list.Element
value
SizeCache
totalSize
:
uint64
maxSize
:
uint64
mu
:
sync.Mutex
lru
:
list.List
cache
:
map[interface{}]sizeCacheEntry
expireCb
:
func(elm interface{})
ExpireCallback
New
(maxSize uint64)
:
*SizeCache
NewWithExpireCallback
(maxSize uint64, cb ExpireCallback)
:
*SizeCache
*SizeCache
entry
(key interface{})
:
(sizeCacheEntry, bool)
Get
(key interface{})
:
(interface{}, bool)
Add
(key interface{}, size uint64, value interface{})
Drop
(key interface{})
Size
()
:
uint64
All occurrences
Please wait...
Page is in error, reload to recover