Skip to content
Snippets Groups Projects
Commit f48225b0 authored by catch's avatar catch
Browse files

Issue #1323120 by webchick, David_Rothstein, kotnik, amateescu: Documentation...

Issue #1323120 by webchick, David_Rothstein, kotnik, amateescu: Documentation follow-ups for convert cache system to PSR-0.
parent 982087f2
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
/**
* @file
* Definition of CacheBackendInterface.
* Definition of Drupal\Core\Cache\CacheBackendInterface.
*/
namespace Drupal\Core\Cache;
......@@ -11,21 +11,22 @@
* Defines an interface for cache implementations.
*
* All cache implementations have to implement this interface.
* DrupalDatabaseCache provides the default implementation, which can be
* consulted as an example.
* Drupal\Core\Cache\DatabaseBackend provides the default implementation, which
* can be consulted as an example.
*
* To make Drupal use your implementation for a certain cache bin, you have to
* set a variable with the name of the cache bin as its key and the name of
* your class as its value. For example, if your implementation of
* DrupalCacheInterface was called MyCustomCache, the following line would make
* Drupal use it for the 'cache_page' bin:
* Drupal\Core\Cache\CacheBackendInterface was called MyCustomCache, the
* following line would make Drupal use it for the 'cache_page' bin:
* @code
* variable_set('cache_class_cache_page', 'MyCustomCache');
* @endcode
*
* Additionally, you can register your cache implementation to be used by
* default for all cache bins by setting the variable 'cache_default_class' to
* the name of your implementation of the DrupalCacheInterface, e.g.
* the name of your implementation of the
* Drupal\Core\Cache\CacheBackendInterface, e.g.
* @code
* variable_set('cache_default_class', 'MyCustomCache');
* @endcode
......@@ -42,7 +43,7 @@
* @endcode
*
* @see cache()
* @see DrupalDatabaseCache
* @see Drupal\Core\Cache\DatabaseBackend
*/
interface CacheBackendInterface {
......
......@@ -2,7 +2,7 @@
/**
* @file
* Definition of DatabaseBackend.
* Definition of Drupal\Core\Cache\DatabaseBackend.
*/
namespace Drupal\Core\Cache;
......
......@@ -2,7 +2,7 @@
/**
* @file
* Definition of InstallBackend.
* Definition of Drupal\Core\Cache\InstallBackend.
*/
namespace Drupal\Core\Cache;
......
......@@ -2,7 +2,7 @@
/**
* @file
* Definition of NullBackend.
* Definition of Drupal\Core\Cache\NullBackend.
*/
namespace Drupal\Core\Cache;
......
......@@ -1507,7 +1507,7 @@ function system_schema() {
'default' => 0,
),
'cache' => array(
'description' => "The time of this user's last post. This is used when the site has specified a minimum_cache_lifetime. See DrupalCacheInterface::get().",
'description' => "The time of this user's last post. This is used when the site has specified a minimum_cache_lifetime. See Drupal\Core\Cache\CacheBackendInterface::get().",
'type' => 'int',
'not null' => TRUE,
'default' => 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment