You are here

session_cache.install in Session Cache API 8

Same filename and directory in other branches
  1. 6 session_cache.install
  2. 7 session_cache.install

File

session_cache.install
View source
<?php

/**
 * @file
 * session_cache.install
 */

/**
 * Implements hook_schema().
 *
 * This creates the 'cache_session_cache' table in drupal_install_schema()
 * This table can then be used in cache('session_cache')->set(...) and
 * cache('session_cache')->get(...) calls.
 * The table is dropped via drupal_uninstall_schema() when the module is
 * uninstalled.
 */
function session_cache_schema() {

  // Use the generic cache table for caching things not separated out into
  // their own tables. Contrib modules may also use this to store cached items.
  $schema['cache_session_cache'] = system_schema_cache_8007();
  $schema['cache_session_cache']['description'] = 'Cache table for Session Cache API';
  return $schema;
}

Functions

Namesort descending Description
session_cache_schema Implements hook_schema().