public static function forever($key, $data)
    {
        if (is_callable($data)) {
            $content = $data();
        } else {
            $content = $data;
        }

        $meta['__bow_meta'] = ['expire_at' => '+'];

        $meta['content'] = $content;

        return (bool) file_put_contents(
            static::makeHashFilename($key, true),
            serialize($meta)
        );
    }
public static function forever($key, $data)
    {
        if (is_callable($data)) {
            $content = $data();
        } else {
            $content = $data;
        }

        $meta['__bow_meta'] = ['expire_at' => '+'];

        $meta['content'] = $content;

        return (bool) file_put_contents(
            static::makeHashFilename($key, true),
            serialize($meta)
        );
    }
public static function forever ( $ key , $ data ) { if ( is_callable ( $ data ) ) { $ content = $ data ( ) ; } else { $ content = $ data ; } $ meta [ '__bow_meta' ] = [ 'expire_at' => '+' ] ; $ meta [ 'content' ] = $ content ; return ( bool ) file_put_contents ( static :: makeHashFilename ( $ key , true ) , serialize ( $ meta ) ) ; }
Adds a cache that will persist

@param  string $key  The cache key
@param  mixed  $data
@return bool
Adds a cache that will persist