Browse Source

Rename memcache lib to avoid conflicts

master
Skylar Ittner 3 months ago
parent
commit
0ed63d18bb
  1. 2
      lib/MemcacheDriver.lib.php
  2. 2
      required.php

2
lib/Memcache.lib.php → lib/MemcacheDriver.lib.php

@ -6,7 +6,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
class Memcache {
class MemcacheDriver {
public $memcache;
private bool $enabled;

2
required.php

@ -61,7 +61,7 @@ $memcacheconfig = env("memcached", [
"port" => 11211,
"prefix" => "apiserver"
]);
$memcache = new Memcache($memcacheconfig["enable"], $memcacheconfig["server"], $memcacheconfig["port"], $memcacheconfig["prefix"]);
$memcache = new MemcacheDriver($memcacheconfig["enable"], $memcacheconfig["server"], $memcacheconfig["port"], $memcacheconfig["prefix"]);
unset($memcacheconfig);
if (env("debugmode", false)) {

Loading…
Cancel
Save