19 lines
486 B
PHP
19 lines
486 B
PHP
<?php
|
|
|
|
// Make sure we are called from index.php
|
|
if (!defined('SECURITY')) die('Hacking attempt');
|
|
|
|
/**
|
|
* A wrapper class which provides compatibility between Memcached and Memcache
|
|
* PHP uses the Memcached class on *nix environments, and the Memcache class
|
|
* on Windows. This class provides compatibility between the two.
|
|
**/
|
|
class Memcached
|
|
extends Memcache
|
|
{
|
|
public function set($key, $value, $expiration = 0)
|
|
{
|
|
return parent::set($key, $value, 0, $expiration);
|
|
}
|
|
}
|