Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
161e3ab3
Commit
161e3ab3
authored
Oct 02, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5263 [skip ci]
parent
dbf047b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
caching-data.md
docs/guide/caching-data.md
+4
-0
No files found.
docs/guide/caching-data.md
View file @
161e3ab3
...
@@ -125,6 +125,10 @@ All cache components have the same base class [[yii\caching\Cache]] and thus sup
...
@@ -125,6 +125,10 @@ All cache components have the same base class [[yii\caching\Cache]] and thus sup
*
[
[yii\caching\Cache::delete()|delete()
]
]: removes a data item identified by a key from the cache.
*
[
[yii\caching\Cache::delete()|delete()
]
]: removes a data item identified by a key from the cache.
*
[
[yii\caching\Cache::flush()|flush()
]
]: removes all data items from the cache.
*
[
[yii\caching\Cache::flush()|flush()
]
]: removes all data items from the cache.
> Note: Do not cache a `false` boolean value directly because the [[yii\caching\Cache::get()|get()]] method uses
`false`
return value to indicate the data item is not found in the cache. You may put
`false`
in an array and cache
this array instead to avoid this problem.
Some cache storage, such as MemCache, APC, support retrieving multiple cached values in a batch mode,
Some cache storage, such as MemCache, APC, support retrieving multiple cached values in a batch mode,
which may reduce the overhead involved in retrieving cached data. The APIs
[
[yii\caching\Cache::mget()|mget()
]
]
which may reduce the overhead involved in retrieving cached data. The APIs
[
[yii\caching\Cache::mget()|mget()
]
]
and
[
[yii\caching\Cache::madd()|madd()
]
] are provided to exploit this feature. In case the underlying cache storage
and
[
[yii\caching\Cache::madd()|madd()
]
] are provided to exploit this feature. In case the underlying cache storage
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment