| 1 | <?php |
||
| 4 | abstract class AbstractMemcachedStore |
||
| 5 | { |
||
| 6 | // when over 30 days, it's treated as unix timestamp (number of seconds |
||
| 7 | // since January 1, 1970, as an integer), and not a number of seconds |
||
| 8 | // starting from current time |
||
| 9 | // http://php.net/manual/en/memcache.set.php |
||
| 10 | const MAX_TTL = 2592000; |
||
| 11 | |||
| 12 | // key size is limited |
||
| 13 | // https://code.google.com/p/memcached/wiki/NewProgrammingTricks#Reducing_key_size |
||
| 14 | const MAX_KEY_LENGTH = 250; |
||
| 15 | |||
| 16 | protected function prepareKey($key) |
||
| 24 | |||
| 25 | protected function prepareTtl($ttl) |
||
| 33 | } |
||
| 34 |