package
0.0.0-20210310205550-8f072b4f2c90
Repository: https://github.com/ghostdb/ghostdb-cache-node.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
BootAOF Reads from log if it exists otherwise creates and writes to one.
BuildCache parses a pre-existing AOFrebuilds cache using contents.
BuildCache rebuilds the cache from the byte stream of the snapshot.
No description provided by the author
No description provided by the author
DecryptData decrypts snapshots which have at-rest encryption enabled.
EncryptData is our encryption client to encrypt the serialized cache object with 128 bit AES.
No description provided by the author
No description provided by the author
GetBuffer returns buffer.
No description provided by the author
GetSnapshotFilename builds the filename for the snapshot being taken.
NewSnapshotScheduler initializes a new Snapshot Scheduler.
ReadSnapshot reads the compressed snapshot file into buffer and returns a reference to the buffer.
No description provided by the author
* * StartSnapshotter will start the cache snapshot scheduler * * Snapshots are periodically taken of the stores cache until the ticker * is stopped.
StopSnapshotter stops the Snapshotter by passing a bool to the scheduler channel.
WriteBuffer writes cache command in log format.

# Constants

No description provided by the author

# Structs

SnapshotScheduler represents a scheduler for the cache snapshotter.