# CodeIgniter 缓存类函数参考 - get(id\['string'\])

**URL:** <https://www.isharkfly.com/t/codeigniter-get-id-string/2881>\
**Category:** PHP\
**Created:** [January 5, 2014, 2:29am UTC](https://www.isharkfly.com/t/codeigniter-get-id-string/2881 "2014-01-05T02:29:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [January 5, 2014, 2:29am UTC](https://www.isharkfly.com/t/codeigniter-get-id-string/2881/1 "2014-01-05T02:29:03Z")

</div>

此函数将尝试从缓存系统中获取指定的缓存项。

如果缓存不存在，或者超过缓存期限，则返回 False。`$foo = $this->cache->get('my_cached_item');`
