package
0.13.4
Repository: https://github.com/viant/mly.git
Documentation: pkg.go.dev

# README

Datastore

Statistics

L1 down 

local cache not found -> 
  no l1 => 
  l1 cache not found -> + noKey
    no l2 =>
    l2 cache not found => + L2NoKey
    l2 cache timeout => + timeout 
    l2 cache error => + timeout + error
    l2 cache found => + L1Copy + hasValue
  l1 cache timeout => + timeout + error
  l1 cache error => + error
  l1 cache found => + hasValue

local cache found ->
  expired -> expired
	no l1 => 
	l1 cache not found -> + noKey
	  no l2 =>
	  l2 cache not found => + L2NoKey
	  l2 cache timeout => + timeout
	  l2 cache error => + timeout + error
	  l2 cache found => + L1Copy + hasValue
	l1 cache timeout => + timeout + error
	l1 cache error => + error
	l1 cache found => + hasValue

  no such value => cacheHit + noKey

  found => cacheHit + hasValue

  collision -> collision
	no l1 => 
	l1 cache not found -> + noKey
	  no l2 =>
	  l2 cache not found => + L2NoKey
	  l2 cache timeout => + timeout
	  l2 cache error => + timeout + error
	  l2 cache found => + L1Copy + hasValue
	l1 cache timeout => + timeout + error
	l1 cache error => + error
	l1 cache found => + hasValue
  

# Packages

No description provided by the author
No description provided by the author

# Functions

No description provided by the author
NewStores creates new stores.
No description provided by the author
NewWithCache creates a cache optionally.

# Constants

CacheStatusFound entry found status.
CacheStatusFoundNoSuchKey we cache the status that we did not find a cache; this no-cache value has a shorter expiry.
CacheStatusNotFound no such key status.
No description provided by the author
No description provided by the author

# Structs

Entry
Entry represents data entry.
Key represents a datastore key.
Service datastore service.

# Interfaces

EntryData.
No description provided by the author
Value represents a datastore value.

# Type aliases

No description provided by the author
StoreMode represents service mode.