Title: $expire
Last modified: August 21, 2016

---

# $expire

 *  [PauloASilva](https://wordpress.org/support/users/pauloasilva/)
 * (@pauloasilva)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/expire/)
 * Hi,
    I suppose that there is an inconsistency between memcached wp_cache_set()
   API and the core one.
 * From the codex you can find the following description about $expire: “Defines
   how many seconds to keep the cache for” ([see](http://codex.wordpress.org/Function_Reference/wp_cache_set))
 * but the wp_cache_set() from memcached, is expecting a timestamp from the beginning
   of the epoch.
 * Am I correct?
 * What happens when memcached is not present and wp_cache_set() defaults to the
   core function?
 * Thanks in advance,
    Paulo
 * [http://wordpress.org/plugins/memcached/](http://wordpress.org/plugins/memcached/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Tiago Barbosa](https://wordpress.org/support/users/tiago-barbosa/)
 * (@tiago-barbosa)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/expire/#post-4226311)
 * This PauloaSilva is a criminal and a psicopath and should be banned and not allowed
   to post anywhere
 *  [Tiago Barbosa](https://wordpress.org/support/users/tiago-barbosa/)
 * (@tiago-barbosa)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/expire/#post-4226312)
 * This PauloaSilva is a criminal and a psicopath and should be banned and not allowed
   to post anywhere

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘$expire’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/memcached.svg)
 * [Memcached Object Cache](https://wordpress.org/plugins/memcached/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/memcached/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/memcached/)
 * [Active Topics](https://wordpress.org/support/plugin/memcached/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/memcached/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/memcached/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [memcache](https://wordpress.org/support/topic-tag/memcache/)
 * [ttl](https://wordpress.org/support/topic-tag/ttl/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tiago Barbosa](https://wordpress.org/support/users/tiago-barbosa/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/expire/#post-4226312)
 * Status: not resolved