@@ -37,7 +37,7 @@ private static function getSplitNameFromCacheKey($key)
3737 */
3838 public function getChangeNumber ()
3939 {
40- $ since = Di::getCache ()->getItem (self ::getCacheKeyForSinceParameter ())-> get ( );
40+ $ since = Di::getCache ()->get (self ::getCacheKeyForSinceParameter ());
4141 // empty check for nullable value
4242 return (empty ($ since )) ? -1 : $ since ;
4343 }
@@ -49,8 +49,8 @@ public function getChangeNumber()
4949 public function getSplit ($ splitName )
5050 {
5151 $ cache = Di::getCache ();
52- $ cacheItem = $ cache ->getItem (self ::getCacheKeyForSplit ($ splitName ));
53- return $ cacheItem-> get () ;
52+ $ cacheItem = $ cache ->get (self ::getCacheKeyForSplit ($ splitName ));
53+ return $ cacheItem ;
5454 }
5555
5656 /**
@@ -60,10 +60,10 @@ public function getSplit($splitName)
6060 public function getSplits ($ splitNames )
6161 {
6262 $ cache = Di::getCache ();
63- $ cacheItems = $ cache ->getItems (array_map ('self::getCacheKeyForSplit ' , $ splitNames ));
63+ $ cacheItems = $ cache ->fetchMany (array_map ('self::getCacheKeyForSplit ' , $ splitNames ));
6464 $ toReturn = array ();
6565 foreach ($ cacheItems as $ key => $ value ) {
66- $ toReturn [self ::getSplitNameFromCacheKey ($ key )] = $ value-> get () ;
66+ $ toReturn [self ::getSplitNameFromCacheKey ($ key )] = $ value ;
6767 }
6868 return $ toReturn ;
6969 }
@@ -100,7 +100,7 @@ public function trafficTypeExists($trafficType)
100100 {
101101 $ cache = Di::getCache ();
102102
103- $ count = $ cache ->getItem (self ::getCacheKeyForTrafficType ($ trafficType ))-> get ( );
103+ $ count = $ cache ->get (self ::getCacheKeyForTrafficType ($ trafficType ));
104104 // empty check for nullable value
105105 return (empty ($ count ) || $ count < 1 ) ? false : true ;
106106 }
0 commit comments