Store.php 365 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. *
  4. *
  5. * @author walkor <worker-man@qq.com>
  6. *
  7. */
  8. class Store
  9. {
  10. public static function set($key, $value, $ttl = 0)
  11. {
  12. return apc_store($key, $value, $ttl);
  13. }
  14. public static function get($key)
  15. {
  16. return apc_fetch($key);
  17. }
  18. public static function delete($key)
  19. {
  20. return apc_delete($key);
  21. }
  22. }