Move KeyValuePairStorage to strategies
This commit is contained in:
parent
f2c02a79b9
commit
58f56c7d7d
4 changed files with 44 additions and 3 deletions
|
@ -291,7 +291,10 @@ return [
|
|||
],
|
||||
],
|
||||
\Friendica\Core\KeyValueStorage\Capabilities\IManageKeyValuePairs::class => [
|
||||
'instanceOf' => \Friendica\Core\KeyValueStorage\Type\DBKeyValueStorage::class,
|
||||
'instanceOf' => \Friendica\Core\KeyValueStorage\Factory\KeyValueStorage::class,
|
||||
'call' => [
|
||||
['create', [], Dice::CHAIN_CALL],
|
||||
],
|
||||
],
|
||||
Network\HTTPClient\Capability\ICanSendHttpRequests::class => [
|
||||
'instanceOf' => Network\HTTPClient\Factory\HttpClient::class,
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
use Friendica\Core\Cache;
|
||||
use Friendica\Core\Logger\Type;
|
||||
use Friendica\Core\KeyValueStorage;
|
||||
use Psr\Log;
|
||||
|
||||
return [
|
||||
|
@ -35,5 +36,8 @@ return [
|
|||
Cache\Type\MemcacheCache::class => ['memcache'],
|
||||
Cache\Type\MemcachedCache::class => ['memcached'],
|
||||
Cache\Type\RedisCache::class => ['redis'],
|
||||
]
|
||||
],
|
||||
KeyValueStorage\Capabilities\IManageKeyValuePairs::class => [
|
||||
KeyValueStorage\Type\DBKeyValueStorage::class => ['database', ''],
|
||||
],
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue