File

Documentation for the included File driver

🚧

Low Performance!

It is not recommended to use this driver in situations where high performance is required, this driver can't compete with any in-memory cache stores and isn't designed to do so!

Fully-qualified name: \J0sh0nat0r\SimpleCache\Drivers\File

Options

  • dir - (Required) The directory in which to store cache objects
  • encryption_key - (Optional) The key to use for encrypting data, if not set data will NOT be encrypted

πŸ“˜

Directory Creation

When the directory is not found, SimpleCache will attempt to automatically create it.

Example Options Arrays

Minimal:

<?php
$options = [
  'dir' => 'cache'
];