\ BWP_Cache

Provides caching mechanism for BWP plugins

Summary

Methods
Properties
Constants
__construct()
set()
get()
No public properties found
No constants found
No protected methods found
$bridge
$group
N/A

Properties

$bridge

$bridge : 

$group

$group : string

The group to store all items under

Type

string

Methods

__construct()

__construct(\BWP_WP_Bridge  $bridge,   $group) 

Parameters

\BWP_WP_Bridge $bridge
$group

set()

set(string  $key, mixed  $value, boolean  $shared = false) : true

Set cached value of a property

Parameters

string $key
mixed $value
boolean $shared

whether to share with other plugins

Returns

true

if successful, false if failed

get()

get(string  $key, boolean  $shared = false, mixed  $not_found_value = null) : mixed

Get cached value of a property

Parameters

string $key
boolean $shared

whether to get shared value

mixed $not_found_value

value to return when key not found in cache

Returns

mixed