Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PCache ¶
type PCache struct {
// contains filtered or unexported fields
}
PCache is safe for concurrent use, goroutine local cache. All operations run in amortized constant time. PCache does its best to cache items inside and do as little synchronization as possible but since it is cache, there is no guarantee that PCache won't evict your item after Store.
PCache evicts random items if I goroutine local cache achieves maxSizePerGoroutine size. PCache cleans itself entirely from time to time.
The zero PCache is invalid. Use NewPCache method to create PCache.
Click to show internal directories.
Click to hide internal directories.