You can set the TTL to 0, which means it should never expire.
But remember that it will never be infinite. The data is stored in memory and will be lost in some circumstances, the most obvious of which is a server reboot. :)
You should always be able to recover this data when memcache fails.
More information can be found here .
Goleztrol
source share