xorm: xorm.io/xorm/contexts Index | Files

package contexts

import "xorm.io/xorm/contexts"


Package Files


func NewMemoryContextCache Uses

func NewMemoryContextCache() memoryContextCache

NewMemoryContextCache return memoryContextCache

type ContextCache Uses

type ContextCache interface {
    // Put puts value into cache with key.
    Put(key string, val interface{})
    // Get gets cached value by given key.
    Get(key string) interface{}

ContextCache is the interface that operates the cache data.

Package contexts is imported by 3 packages. Updated 2020-03-30. Refresh now. Tools for package owners.