source: spip-zone/_plugins_/memoization/memo/nocache.inc @ 32480

Last change on this file since 32480 was 32480, checked in by fil@…, 11 years ago

apres quelques tests et debug, retour a l'API complete de cache_inc(key, VALUE, TTL)

File size: 736 bytes
Line 
1<?php
2
3/*
4mixed cache_get(string key)
5bool  cache_set(string key, mixed value [, int ttl])
6bool  cache_isset(string key)
7bool  cache_unset(string key)
8int   cache_inc(string key[, int value[, int ttl] ])
9int   cache_dec(string key[, int value[, int ttl] ])
10bool  cache_lock(string key)
11bool  cache_unlock(string key)
12*/
13
14function cache_get($key) {
15}
16
17function cache_set($key, $value, $ttl=null) {
18        return false;
19}
20
21function cache_isset($key) {
22        return false;
23}
24
25function cache_unset($key) {
26        return false;
27}
28
29function cache_inc($key, $value=null, $ttl=null) {
30        return 0;
31}
32
33function cache_dec($key, $value=null, $ttl=null) {
34        return 0;
35}
36
37function cache_lock($key) {
38        return false;
39}
40
41function cache_unlock($key) {
42        return false;
43}
44
45?>
Note: See TracBrowser for help on using the repository browser.