We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 930f50f commit 2188e3aCopy full SHA for 2188e3a
1 file changed
src/Builder/Null.php
@@ -0,0 +1,21 @@
1
+<?php
2
+
3
+namespace WPMultiObjectCache\Builder;
4
5
+use Cache\Adapter\Common\AbstractCachePool;
6
+use Cache\Adapter\Void\VoidCachePool;
7
+use WPMultiObjectCache\PoolBuilderInterface;
8
9
+class Null implements PoolBuilderInterface {
10
11
+ /**
12
+ * Creates a pool
13
+ *
14
+ * @param array $config Config to use to create the pool.
15
16
+ * @return AbstractCachePool
17
+ */
18
+ public function create( array $config = [] ) {
19
+ return new VoidCachePool();
20
+ }
21
+}
0 commit comments