Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3338541
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3338541
Commits
5b32c7ba
Commit
5b32c7ba
authored
11 years ago
by
Jennifer Hodgdon
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#2216543
by eojthebrave: Fix code example and some text in Config API topic
parent
8ad79ceb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/system/core.api.php
+9
-4
9 additions, 4 deletions
core/modules/system/core.api.php
with
9 additions
and
4 deletions
core/modules/system/core.api.php
+
9
−
4
View file @
5b32c7ba
...
...
@@ -200,7 +200,6 @@
*
* Example:
* @code
* $cache = \Drupal::cache();
* $cid = 'mymodule_example:' . \Drupal::languageManager()->getCurrentLanguage()->id();
*
* $data = NULL;
...
...
@@ -213,6 +212,12 @@
* }
* @endcode
*
* Note the use of $data and $cache->data in the above example. Calls to
* \Drupal::cache()->get() return a record that contains the information stored
* by \Drupal::cache()->set() in the data property as well as additional meta
* information about the cached data. In order to make use of the cached data
* you can access it via $cache->data.
*
* @section bins Cache bins
*
* Cache storage is separated into "bins", each containing various cache items.
...
...
@@ -300,9 +305,9 @@
*
* @section configuration Configuration
*
*
Each cache bin can be configured separately; for instance, each bin can use a
*
different cache backend, such as APC or Memcache. The default backend stores
*
the cached data in the Drupal databas
e.
*
By default cached data is stored in the database. This can be configured
*
though so that all cached data, or that of an individual cache bin, uses a
*
different cache backend, such as APC or Memcache, for storag
e.
*
* In a settings.php file, you can override the class used for a particular
* cache bin. For example, if your implementation of
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment