cache

package
v0.0.0-...-7b0bed8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyPortfolio       = "portfolio"
	KeyRecommendations = "recommendations"
	KeyZerodhaToken    = "zerodha_token"
	KeyICICIToken      = "icici_direct_token"
)

Cache keys

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	*cache.Cache
	// contains filtered or unexported fields
}

Cache represents the application's cache

func New

func New(defaultExpiration, cleanupInterval time.Duration) *Cache

New creates a new Cache instance

func (*Cache) ClearAll

func (c *Cache) ClearAll()

ClearAll clears all cached data

func (*Cache) Delete

func (c *Cache) Delete(key string)

Delete removes an item from the cache

Jump to

Keyboard shortcuts

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