package
1.4.0
Repository: https://github.com/nerdynz/dat.git
Documentation: pkg.go.dev

# Functions

Hash returns the hash value of a string.
NewDefaultMemoryStore creates an instance of MemoryKeyValueStore with default settings.
NewDefaultRedisStore instantiates Redis.
NewMemoryKeyValueStore creates an instance of MemoryKeyValueStore with given backing.
NewRedisStore creates a new instance of RedisTokenStore.
NewRedisStoreFromPool creates a new instance of RedisTokenStore from an existing pool.

# Constants

NanosecondsPerMillisecond is used to convert between ns and ms.
TTLNever means do not expire a key.

# Variables

ErrNotFound is returned when an entry is not found in memory database.

# Structs

MemoryKeyValueStore is an in-memory cache implementation of KeyValueStore.
RedisStore is a concrete implementation of KeyValueStore for Redis.

# Interfaces

KeyValueStore represents simple key value storage.