You are here

function backup_migrate_destination::file_cache_set in Backup and Migrate 8.2

Same name and namespace in other branches
  1. 8.3 includes/destinations.inc \backup_migrate_destination::file_cache_set()
  2. 6.3 includes/destinations.inc \backup_migrate_destination::file_cache_set()
  3. 6.2 includes/destinations.inc \backup_migrate_destination::file_cache_set()
  4. 7.3 includes/destinations.inc \backup_migrate_destination::file_cache_set()
  5. 7.2 includes/destinations.inc \backup_migrate_destination::file_cache_set()

Cache the file list.

2 calls to backup_migrate_destination::file_cache_set()
backup_migrate_destination::file_cache_clear in includes/destinations.inc
Retrieve the file list.
backup_migrate_destination::list_files in includes/destinations.inc
List all the available files in the given destination with their destination specific id.

File

includes/destinations.inc, line 687

Class

backup_migrate_destination
A base class for creating destinations.

Code

function file_cache_set($files) {
  cache_set('backup_migrate_file_list:' . $this
    ->get_id(), $files, 'cache', time() + $this->cache_expire);
}