# Contract

abstract class Contract

## Methods

void
set(string $cacheName, mixed $contents)

Create a new cache files/value

mixed
get(string $cacheName, string $callBack = '')

Get cache value

bool
put(string $cacheName, mixed $contents)

Update cache value

void
destroy(string $cacheName)

Delete cache

void
purge()

Make cache clean as soon as posible

array
getList()

Undocumented function

string
getPath()

Get path or key of cache

bool
isExists(string $cacheName)

No description

string
getError()

No description

## Details

###
at line 24
`abstract void set(string $cacheName, mixed $contents)`

Create a new cache files/value

#### Parameters

string | $cacheName |
mixed | $contents |

#### Return Value

void |

###
at line 33
`abstract mixed get(string $cacheName, string $callBack = '')`

Get cache value

#### Parameters

string | $cacheName |
string | $callBack |

#### Return Value

mixed |

###
at line 42
`abstract bool put(string $cacheName, mixed $contents)`

Update cache value

#### Parameters

string | $cacheName |
mixed | $contents |

#### Return Value

bool |

###
at line 50
`abstract void destroy(string $cacheName)`

Delete cache

#### Parameters

string | $cacheName |

#### Return Value

void |

###
at line 57
`abstract void purge()`

Make cache clean as soon as posible

#### Return Value

void |

###
at line 64
`abstract array getList()`

Undocumented function

#### Return Value

array |

###
at line 71
`abstract string getPath()`

Get path or key of cache

#### Return Value

string |

###
at line 76
`abstract bool isExists(string $cacheName)`

No description

#### Parameters

string | $cacheName |

#### Return Value

bool |

###
at line 81
`string getError()`

No description

#### Return Value

string |