# Files

class Files extends 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()

Get cache as list

string
getPath()

Get path or key of cache

bool
isExists(string $cacheName)

No description

string
getError()

No description

from Contract
__construct(string $directory)

Register all options

## Details

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

Create a new cache files/value

#### Parameters

string | $cacheName |
mixed | $contents |

#### Return Value

void |

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

Get cache value

#### Parameters

string | $cacheName |
string | $callBack |

#### Return Value

mixed |

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

Update cache value

#### Parameters

string | $cacheName |
mixed | $contents |

#### Return Value

bool |

###
at line 70
`void destroy(string $cacheName)`

Delete cache

#### Parameters

string | $cacheName |

#### Return Value

void |

###
at line 80
`void purge()`

Make cache clean as soon as posible

#### Return Value

void |

###
at line 102
`array getList()`

Get cache as list

#### Return Value

array |

###
at line 92
`string getPath()`

Get path or key of cache

#### Return Value

string |

###
at line 110
`bool isExists(string $cacheName)`

No description

#### Parameters

string | $cacheName |

#### Return Value

bool |

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

No description

#### Return Value

string |

###
at line 22
`__construct(string $directory)`

Register all options

#### Parameters

string | $directory |