retention

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	GetTTL(key string) *TTL
	DefaultTTL() time.Duration
	Default() *TTL
	DefaultHotDataTTL() time.Duration
	GetConfigKey(name string, tags map[string]string) string
	GetTTLByTags(name string, tags map[string]string) time.Duration
	Loading(ctx context.Context)
}

Interface .

type TTL

type TTL struct {
	// hot data ttl
	HotData time.Duration

	// entire data ttl, cold data = ttl - hot ttl
	All time.Duration
}

func (TTL) GetHotTTLByDays

func (t TTL) GetHotTTLByDays() int64

func (TTL) GetTTLByDays

func (t TTL) GetTTLByDays() int64

Jump to

Keyboard shortcuts

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