目录
目录README.md

TimedCache

Description

This package is a protcol oriented cache implementation with a centrailized feature of expiration. Expiration is optional by definition of the protocol, but not the original intention. The only included implemenation is DictionaryCache, which is in fact thread safe.

Example

  var dictCache = DictionaryCache()
  dictCache.set("My Object", for: "My Key", expiring: 500)

  dictCache["My Key"] // "My Object"
关于
37.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号