cache

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Cache represents cache client
	Cache = NewCache()
)

Functions

This section is empty.

Types

type EventCache

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

EventCache represents cache client

func NewCache

func NewCache() *EventCache

NewCache returns cache client

func (*EventCache) Expire

func (c *EventCache) Expire(logGroupName string, lastSeen *int64)

Expire deletes cache older than the given timestamp

func (*EventCache) Load

func (c *EventCache) Load(logGroupName string, key *string) (ok bool)

Load gets value

func (*EventCache) Store

func (c *EventCache) Store(logGroupName string, key *string, value *int64)

Store saves key and value

Jump to

Keyboard shortcuts

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