Documentation
¶
Index ¶
- func ZeroizeString(s *string)
- type Cache
- func (c *Cache) CleanupExpired() int
- func (c *Cache) Clear() int
- func (c *Cache) DecInFlight()
- func (c *Cache) Get(key string) (string, bool, time.Time, time.Time)
- func (c *Cache) IncHit()
- func (c *Cache) IncInFlight()
- func (c *Cache) IncMiss()
- func (c *Cache) Set(key, val string)
- func (c *Cache) Stats() (size int, hits, misses int64, inflight int)
- func (c *Cache) TTL() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ZeroizeString ¶
func ZeroizeString(s *string)
Best-effort zeroize when replacing strings (Go GC caveats apply).
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) CleanupExpired ¶
CleanupExpired removes expired entries from the cache
func (*Cache) DecInFlight ¶
func (c *Cache) DecInFlight()
func (*Cache) IncInFlight ¶
func (c *Cache) IncInFlight()
Click to show internal directories.
Click to hide internal directories.