valkey

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//OptHost Redis/Valkey host name. type: string
	OptHost = iota + storage.OptDataTypes + 1
	//OptPort the port number for the server. Will default to 6379 if not supplied. type: int
	OptPort
	//OptClientCaching set true to use client side caching else false. type: bool
	OptClientCaching //see https://redis.io/docs/latest/develop/reference/client-side-caching/
	//OptClientCachingTtl if OptClientCaching is true, then how long to keep the client side caching item. type: time.Duration
	OptClientCachingTtl
	//OptValkeyOptions Valkey client options. type: valkey.ClientOption
	OptValkeyOptions
	//OptManageTypes set true to manage data types. type: bool
	OptManageTypes
	//OptDatetimeFormat the datetime format to use for the cache datetime values when data types are managed. Defaults to time.RFC3339. type: string
	OptDatetimeFormat
)
View Source
const (
	//ManagedDataTypeCacheKeyPrefix the prefix for the managed data type cache key.
	ManagedDataTypeCacheKeyPrefix = "gcm:"
	// ManagedDataTypeCacheTpl formatting string for the managed data type cache key.
	ManagedDataTypeCacheTpl = ManagedDataTypeCacheKeyPrefix + "%s"
)

Variables

This section is empty.

Functions

func New

func New(namespace string, host string, ttl time.Duration, clientCaching bool, clientCachingTtl time.Duration, manageTypes bool) storage.Storage

Types

This section is empty.

Jump to

Keyboard shortcuts

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