8000 Adding documentation about the simple cache PSR-16 implementation by weaverryan · Pull Request #7417 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Adding documentation about the simple cache PSR-16 implementation #7417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Tweaks after feedback!
  • Loading branch information
weaverryan committed Feb 2, 2017
commit 7af448be5bf5ef980de57833c3c977ff830bd4dc
2 changes: 1 addition & 1 deletion components/cache.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Now you can create, retrieve, update and delete items using this object::
// $numProducts = $cache->get('stats.num_products', 100);

// remove the cache key
$cache->deleteItem('stats.num_products');
$cache->delete('stats.num_products');

// clear *all* cache keys
$cache->clear();
Expand Down
2 changes: 2 additions & 0 deletions components/cache/cache_pools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ helper allows creating a connection to a pool of Memcached server using a DSN co
// options, including username, password and Memcached::OPT_* options
array('persistent_id' => '_products_cache')
);

// alternate syntax: array notations for the servers
$memcachedClient = MemcachedAdapter::createConnection(array(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this repeated $memcachedClient variable defined on purpose? Should we merge its contents with the previous variable?

4613
array('192.168.1.100', 11211, 33),
array('192.168.1.101', 11211, 33)
Expand Down
0