跳到主要内容

Get

通过key获取在lru缓存中的value,该操作会更新key-value的淘汰顺序

声明

mixed Get(mixed key)

参数

参数名描述
self
key要查询的key

返回值

key在lru缓存中存储的的value

使用方式

返回文档