# \cms_cache_driver

An abstract base class for all cache drivers.

Cache drivers should work with cache groups and should have a preset group. most implementations of a cache driver will accept the name of a default cache group in its constructor.

## Summary

Methods
Properties
Constants
clear()
get()
exists()
erase()
set()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A
abstract

File
  lib/class.cms_cache_driver.php
Package
  \CGExtensions
Class hierarchy
  \cms_cache_driver

## Tags

todo |

## Methods

### clear()

    clear(string $group)

Clear a cache group (or the default cache group).

#### Parameters

string | $group | The cache group

#

abstract

## Tags

todo |

### get()

    get(string $key, string $group)

Retrieve a cached value.

#### Parameters

string | $key | The variable key.
string | $group | The cache group

#

abstract

## Tags

todo |

### exists()

    exists(string $key, string $group)

Test if a value exists in the cache

#### Parameters

string | $key | The variable key.
string | $group | The cache group

#

abstract

## Tags

todo |

### erase()

    erase(string $key, string $group)

Erase a cached value.

#### Parameters

string | $key | The variable key.
string | $group | The cache group

#

abstract

## Tags

todo |

### set()

    set(string $key, string $value, string $group)

Store a value into the cache.

#### Parameters

string | $key | The variable key.
string | $value | The data to store.
string | $group | The cache group

#

abstract

## Tags

todo |

### class.cms_cache_driver.php