@@ 24-60 (lines=37) @@ | ||
21 | * THE SOFTWARE. |
|
22 | */ |
|
23 | ||
24 | class StackManager extends AbstractStackManager { |
|
25 | ||
26 | public function add(EnhancedCacheItemPoolInterface $provider, $weight) { |
|
27 | ||
28 | return $this->genericAdd($provider, $weight); |
|
29 | ||
30 | } |
|
31 | ||
32 | public function remove($id) { |
|
33 | ||
34 | try { |
|
35 | ||
36 | return parent::remove($id); |
|
37 | ||
38 | } catch (Exception $e) { |
|
39 | ||
40 | throw new CacheException($e->getMessage()); |
|
41 | ||
42 | } |
|
43 | ||
44 | } |
|
45 | ||
46 | public function get($id) { |
|
47 | ||
48 | try { |
|
49 | ||
50 | return parent::get($id); |
|
51 | ||
52 | } catch (Exception $e) { |
|
53 | ||
54 | throw new CacheException($e->getMessage()); |
|
55 | ||
56 | } |
|
57 | ||
58 | } |
|
59 | ||
60 | } |
|
61 |
@@ 25-61 (lines=37) @@ | ||
22 | * THE SOFTWARE. |
|
23 | */ |
|
24 | ||
25 | class StackManager extends AbstractStackManager { |
|
26 | ||
27 | public function add(EnhancedSimpleCacheInterface $provider, $weight) { |
|
28 | ||
29 | return $this->genericAdd($provider, $weight); |
|
30 | ||
31 | } |
|
32 | ||
33 | public function remove($id) { |
|
34 | ||
35 | try { |
|
36 | ||
37 | return parent::remove($id); |
|
38 | ||
39 | } catch (Exception $e) { |
|
40 | ||
41 | throw new SimpleCacheException($e->getMessage()); |
|
42 | ||
43 | } |
|
44 | ||
45 | } |
|
46 | ||
47 | public function get($id) { |
|
48 | ||
49 | try { |
|
50 | ||
51 | return parent::get($id); |
|
52 | ||
53 | } catch (Exception $e) { |
|
54 | ||
55 | throw new SimpleCacheException($e->getMessage()); |
|
56 | ||
57 | } |
|
58 | ||
59 | } |
|
60 | ||
61 | } |
|
62 |