Skip to content

Commit

Permalink
Swift now using memcache arraycache
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Petry committed Jul 1, 2015
1 parent 349e39b commit 8fc4121
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 69 deletions.
5 changes: 3 additions & 2 deletions apps/files_external/lib/swift.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Swift extends \OC\Files\Storage\Common {
* Key value cache mapping path to data object. Maps path to
* \OpenCloud\OpenStack\ObjectStorage\Resource\DataObject for existing
* paths and path to false for not existing paths.
* @var \OC\Cache\ArrayCache
* @var \OCP\IMemcache
*/
private $objectCache;

Expand Down Expand Up @@ -161,7 +161,8 @@ public function __construct($params) {
}

$this->params = $params;
$this->objectCache = new \OC\Cache\ArrayCache();
// FIXME: createArrayCache is not on the interface
$this->objectCache = \OC::$server->getMemCacheFactory()->createArrayCache();
}

public function mkdir($path) {
Expand Down
52 changes: 0 additions & 52 deletions lib/private/cache/arraycache.php

This file was deleted.

15 changes: 0 additions & 15 deletions tests/lib/cache/arraycache.php

This file was deleted.

0 comments on commit 8fc4121

Please sign in to comment.