Overview

Namespaces

  • None
  • VSP
    • Core
      • Abstracts
      • Interfaces
      • Traits
        • WC_Compatibility
    • Deprecation
    • Helper
    • Modules
      • Addons
      • Logger

Classes

  • Ajax
  • Ajaxer
  • Base
  • Cache
  • Error
  • Framework
  • Framework_Admin
  • Framework_Base
  • Framework_Modules
  • Helper
  • Setup
  • WC_Compatibility
  • Overview
  • Namespace
  • Class

Class Cache

Class Cache

Namespace: VSP
Package: VSP\Core\Abstracts
Author: Varun Sridharan varunsridharan23@gmail.com
Located at includes/class-cache.php
Methods summary
protected static string
# cache_key( $key )

Handles Cache Key System.

Handles Cache Key System.

Parameters

$key

Returns

string
public static mixed
# set( string $key, mixed $value )

Set Data Cache For Given Cache ID

Set Data Cache For Given Cache ID

Parameters

$key
cache_id.
$value

Returns

mixed
public static boolean|mixed
# get_defaults( string $key, mixed $defaults = false )

Set Cache With Defaults.

Set Cache With Defaults.

Parameters

$key
cache_id.
$defaults

Returns

boolean|mixed
public static mixed
# get( string $key )

Fetch & Returns Cached Data.

Fetch & Returns Cached Data.

Parameters

$key
cache_id.

Returns

mixed

Throws

WPOnion\Exception\Cache_Not_Found
public static
# delete( string $key )

Deletes Cached Data For Given Key.

Deletes Cached Data For Given Key.

Parameters

$key
cache_id.
Properties summary
protected static string $prefix

Cache Key Prefix.

Cache Key Prefix.

# 'vsp'
API documentation generated by ApiGen