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
f11636eb
Commit
f11636eb
authored
Jun 28, 2014
by
Antonio Ramirez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes
parent
e8f092d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
caching-data.md
docs/guide/caching-data.md
+4
-4
No files found.
docs/guide/caching-data.md
View file @
f11636eb
...
...
@@ -130,7 +130,7 @@ which may reduce the overhead involved in retrieving cached data. The APIs [[yii
and
[
[yii\caching\Cache::madd()|madd()
]
] are provided to exploit this feature. In case the underlying cache storage
does not support this feature, it will be simulated.
Because
[
[yii\caching\Cache
]
] implements
`ArrayAccess`
, a cache component can be used like
d
an array. The followings
Because
[
[yii\caching\Cache
]
] implements
`ArrayAccess`
, a cache component can be used like an array. The followings
are some examples:
```
php
...
...
@@ -269,7 +269,7 @@ Query caching can be used for [DAO](db-dao.md) as well as [ActiveRecord](db-acti
### Configurations <a name="query-caching-configs"></a>
Query caching has two
two
configurable options through
[
[yii\db\Connection
]
]:
Query caching has two configurable options through
[
[yii\db\Connection
]
]:
*
[
[yii\db\Connection::queryCacheDuration|queryCacheDuration
]
]: this represents the number of seconds
that a query result can remain valid in the cache. The duration will be overwritten if you call
...
...
@@ -280,9 +280,9 @@ Query caching has two two configurable options through [[yii\db\Connection]]:
### Limitations <a name="query-caching-limitations"></a>
Query caching does not work with query results that contain resource handles. For example,
Query caching does not work with query results that contain resource handle
r
s. For example,
when using the
`BLOB`
column type in some DBMS, the query result will return a resource
handle for the column data.
handle
r
for the column data.
Some caching storage has size limitation. For example, memcache limits the maximum size
of each entry to be 1MB. Therefore, if the size of a query result exceeds this limit,
...
...
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