cache

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

func NewCache

func NewCache(resourceName string, store persist.Storer) *Cache

func (*Cache) ReadTimestampCache

func (c *Cache) ReadTimestampCache() (time.Time, error)

func (*Cache) WriteTimestampCache

func (c *Cache) WriteTimestampCache(lastTimestamp time.Time) error

type CacheInterface

type CacheInterface interface {
	ReadTimestampCache() (time.Time, error)
	WriteTimestampCache(lastTimestamp time.Time) error
}

Jump to

Keyboard shortcuts

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