Go 缓存库 LRUCache

码农软件 · 软件分类 · 缓存系统 · 2019-08-30 08:42:14

软件介绍

用 Go 编写的一个简单的 LRUCache 库,示例代码:

// define a type that can be used with the cache
type myCacheableValue struct {
}

func (v *myCacheableValue) Size() uint64 {
    return 64
}

// create a LRUCache
cache := lrucache.New(1989)

// put value to the cache
value := myCacheableValue{}
cache.Set("key", value)

// get value from the cache
v, ok := cache.Get("key")

本文地址:https://codercto.com/soft/d/13479.html

数学世纪

数学世纪

皮耶尔乔治·奥迪弗雷迪 / 胡作玄、胡俊美、于金青 / 上海科学技术出版社 / 2012-1 / 28.00元

《数学世纪:过去100年间30个重大问题》以简短可读的方式论述了整个20世纪的数学。20世纪的数学博大精深,新兴领域及学科的建立发展,许多经典问题得到解决,大量新的有意义的问题的引入,为数学带来了活力。《数学世纪:过去100年间30个重大问题》介绍了数学基础,20世纪的纯粹数学、应用和计算数学,以及目前未解的重要问题,中间穿插了希尔伯特的23个问题的解决情况、菲尔兹奖和沃尔夫奖得主的工作成就等。一起来看看 《数学世纪》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器