base: github.com/grailbio/base/ttlcache Index | Files

package ttlcache

import "github.com/grailbio/base/ttlcache"

Index

Package Files

ttlcache.go

type Cache Uses

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

func New Uses

func New(ttl time.Duration) *Cache

func (*Cache) Get Uses

func (c *Cache) Get(key interface{}) (interface{}, bool)

func (*Cache) Set Uses

func (c *Cache) Set(key interface{}, value interface{})

Package ttlcache imports 2 packages (graph) and is imported by 1 packages. Updated 2018-08-08. Refresh now. Tools for package owners.