Documentation ¶
Overview ¶
キャッシュ。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { // 入れる。 Put(key, val, prio interface{}) // 取り出す。 Get(key interface{}) (val, prio interface{}) // 優先度を変えつつ取り出す。LRU のとき使う。 Update(key, prio interface{}) (val interface{}) // 基準以下を削除。 // 優先度 nil はいかなる非 nil な優先度より低いとする。 // よって、Update で優先度を nil にしてから、CleanLower すれば削除できる。 // nil で CleanLower したときは優先度 nil のものだけを削除する。 CleanLower(prioThres interface{}) }
キャッシュ。
Click to show internal directories.
Click to hide internal directories.