Documentation ¶
Index ¶
- Constants
- type CacheEntry
- type InMemCache
- func (lc *InMemCache) Get(id string) (found bool, o CacheEntry, expTimeStamp int64)
- func (lc *InMemCache) GetName() string
- func (lc *InMemCache) GetSize() int
- func (lc *InMemCache) Set(o CacheEntry, expirationInSecondsFromNow int64) bool
- func (lc *InMemCache) SetExpiration(id string, expirationInSecondsFromNow int64) bool
- func (lc *InMemCache) Unset(id string) bool
Constants ¶
View Source
const ( VERSION string = "r.20240117.2121" LOG_INTERVAL_SEC uint16 = 60 // log every 60 seconds )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type InMemCache ¶
type InMemCache struct {
// contains filtered or unexported fields
}
func (*InMemCache) Get ¶
func (lc *InMemCache) Get(id string) (found bool, o CacheEntry, expTimeStamp int64)
func (*InMemCache) GetName ¶
func (lc *InMemCache) GetName() string
func (*InMemCache) GetSize ¶
func (lc *InMemCache) GetSize() int
func (*InMemCache) Set ¶
func (lc *InMemCache) Set(o CacheEntry, expirationInSecondsFromNow int64) bool
func (*InMemCache) SetExpiration ¶
func (lc *InMemCache) SetExpiration(id string, expirationInSecondsFromNow int64) bool
func (*InMemCache) Unset ¶
func (lc *InMemCache) Unset(id string) bool
Click to show internal directories.
Click to hide internal directories.