Documentation
¶
Index ¶
- type Cache
- func (c *Cache[T]) Add(ptr allocator.Pointable) Pointable[T]
- func (c *Cache[T]) AddF(ptr allocator.Pointable, flag LOCKMODE) Pointable[T]
- func (c *Cache[T]) AddR(ptr allocator.Pointable) Pointable[T]
- func (c *Cache[T]) AddW(ptr allocator.Pointable) Pointable[T]
- func (c *Cache[T]) Clear()
- func (c *Cache[T]) Del(ptr allocator.Pointable)
- func (c *Cache[T]) Flush()
- func (c *Cache[T]) Get(ptr allocator.Pointable) Pointable[T]
- func (c *Cache[T]) GetF(ptr allocator.Pointable, flag LOCKMODE) Pointable[T]
- func (c *Cache[T]) GetR(ptr allocator.Pointable) Pointable[T]
- func (c *Cache[T]) GetSet(ptr allocator.Pointable) Pointable[T]
- func (c *Cache[T]) GetW(ptr allocator.Pointable) Pointable[T]
- type Dirtyable
- type LOCKMODE
- type Pointable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[T pointable] struct {
// contains filtered or unexported fields
}
type Pointable ¶
type Pointable[T pointable] interface {
RLock() *pointerWrapper[T]
RUnlock() *pointerWrapper[T]
Lock() *pointerWrapper[T]
Unlock() *pointerWrapper[T]
LockFlag(flag LOCKMODE) *pointerWrapper[T]
UnlockFlag(flag LOCKMODE) *pointerWrapper[T]
New() T
Get() T
Set(val T) *pointerWrapper[T]
Flush() *pointerWrapper[T]
Ptr() allocator.Pointable
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.