Documentation ¶
Overview ¶
Example ¶
l := newLinkedList[int]() e4 := l.pushBack(4) e1 := l.pushFront(1) l.insertBefore(3, e4) l.insertAfter(2, e1) for e, i := l.front(), 0; i < l.capacity; i++ { fmt.Println(e.Value) e = e.next }
Output: 1 2 3 4
Index ¶
- type Cache
- func (c *Cache) DecrBy(ctx context.Context, key string, value int64) (int64, error)
- func (c *Cache) Delete(ctx context.Context, key ...string) (int64, error)
- func (c *Cache) Get(ctx context.Context, key string) (val ecache.Value)
- func (c *Cache) GetSet(ctx context.Context, key string, val string) (result ecache.Value)
- func (c *Cache) IncrBy(ctx context.Context, key string, value int64) (int64, error)
- func (c *Cache) IncrByFloat(ctx context.Context, key string, value float64) (float64, error)
- func (c *Cache) LPop(ctx context.Context, key string) (val ecache.Value)
- func (c *Cache) LPush(ctx context.Context, key string, val ...any) (int64, error)
- func (c *Cache) SAdd(ctx context.Context, key string, members ...any) (int64, error)
- func (c *Cache) SRem(ctx context.Context, key string, members ...any) (int64, error)
- func (c *Cache) Set(ctx context.Context, key string, val any, expiration time.Duration) error
- func (c *Cache) SetNX(ctx context.Context, key string, val any, expiration time.Duration) (bool, error)
- type EvictCallback
- type Option
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) IncrByFloat ¶
type EvictCallback ¶
Click to show internal directories.
Click to hide internal directories.