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
1c3fcbe5
ROOT
/
go
/
store
/
chunks
/
memory_store.go
Search
History
312 lines
|
ISO-8859-1
|
7 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
MemoryStorage
data
:
map[hash.Hash]Chunk
rootHash
:
hash.Hash
mu
:
sync.RWMutex
version
:
string
MemoryStoreView
pending
:
map[hash.Hash]Chunk
rootHash
:
hash.Hash
mu
:
sync.RWMutex
version
:
string
storage
:
*MemoryStorage
_
:
ChunkStore
_
:
ChunkStoreGarbageCollector
memoryStoreFactory
stores
:
map[string]*MemoryStorage
mu
:
*sync.Mutex
NewMemoryStoreFactory
()
:
*memoryStoreFactory
*MemoryStorage
NewView
()
:
ChunkStore
NewViewWithFormat
(nbf string)
:
ChunkStore
NewViewWithDefaultFormat
()
:
ChunkStore
Get
(ctx context.Context, h hash.Hash)
:
(Chunk, error)
Has
(ctx context.Context, r hash.Hash)
:
(bool, error)
Len
()
:
int
Root
(ctx context.Context)
:
hash.Hash
Update
(current, last hash.Hash, novel map[hash.Hash]Chunk)
:
bool
*MemoryStoreView
Get
(ctx context.Context, h hash.Hash)
:
(Chunk, error)
GetMany
(ctx context.Context, hashes hash.HashSet, found func(context.Context, *Chunk))
:
error
Has
(ctx context.Context, h hash.Hash)
:
(bool, error)
HasMany
(ctx context.Context, hashes hash.HashSet)
:
(hash.HashSet, error)
Version
()
:
string
Put
(ctx context.Context, c Chunk)
:
error
Len
()
:
int
Rebase
(ctx context.Context)
:
error
Root
(ctx context.Context)
:
(hash.Hash, error)
Commit
(ctx context.Context, current, last hash.Hash)
:
(bool, error)
MarkAndSweepChunks
(ctx context.Context, last hash.Hash, keepChunks <-chan []hash.Hash, dest ChunkStore)
:
error
Stats
()
:
interface{}
StatsSummary
()
:
string
Close
()
:
error
*memoryStoreFactory
CreateStoreFromCache
(ctx context.Context, ns string)
:
ChunkStore
CreateStore
(ctx context.Context, ns string)
:
ChunkStore
Shutter
()
All occurrences
Please wait...
Page is in error, reload to recover