ShardFreeze

package
v0.0.0-...-5cd9a77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2018 License: MIT Imports: 7 Imported by: 0

README

wip

Goal: Be able to freeze shardedmap's dataset into disk, and load later. This at the moment.. works..ish, not very tested and this is a work in progress. supports keeping data on disk even if the key is deleted, for later use. Also, deduplication, it's a thing this whole thing was made possible by sqlite

todo: fix everything handle errors & panics properly validate things make tests i got bored, i'll continue on this later

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Freeze

type Freeze struct {
	// contains filtered or unexported fields
}

func NewFreeze

func NewFreeze(path string, s *Shardmap.ShardMap, ctx context.Context) (*Freeze, error)

NewFreeze returns a freeze object for freezing shardmap collection into a file(S)

func (*Freeze) AutoFlush

func (f *Freeze) AutoFlush(t time.Duration)

func (*Freeze) CleanOld

func (f *Freeze) CleanOld(t time.Duration) error

func (*Freeze) FreezeAll

func (f *Freeze) FreezeAll()

func (*Freeze) LoadFreeze

func (f *Freeze) LoadFreeze()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL