XCache is a fast, stable PHP opcode cacher that has been proven and is now running on production servers under high load. https://xcache.lighttpd.net/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
462 B

--TEST--
xcache_set/get test
--SKIPIF--
<?php
require("skipif.inc");
?>
--FILE--
<?php
var_dump(xcache_isset("a"));
var_dump(xcache_set("a", 1));
var_dump(xcache_get("a"));
var_dump(xcache_isset("a"));
var_dump(xcache_inc("a", 10));
var_dump(xcache_get("a"));
var_dump(xcache_dec("a", 5));
var_dump(xcache_get("a"));
xcache_unset("a");
var_dump(xcache_isset("a"));
?>
--EXPECT--
bool(false)
bool(true)
int(1)
bool(true)
int(11)
int(11)
int(6)
int(6)
bool(false)