store('array'); } if (is_string($arguments[0])) { return app('cache')->store('array')->get(...$arguments); } if (! is_array($arguments[0])) { throw new Exception( 'When setting a value in the cache, you must pass an array of key / value pairs.' ); } // 99999 -- is for TTL. Supposedly, unreachable within one process' life. return app('cache')->store('array')->put(key($arguments[0]), reset($arguments[0]), 99999); }