Skip to content
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

expose local and locking memcaches trough public interfaces #6571

Merged
merged 1 commit into from Sep 20, 2017

Conversation

icewind1991
Copy link
Member

Give apps access to the different caches.

Using the local instead of distributed cache where applicable can lower response times and improve scalability

* create a distributed cache instance
*
* @param string $prefix
* @return \OC\Memcache\Cache
Copy link
Member

Choose a reason for hiding this comment

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

Public interface please

Copy link
Member Author

Choose a reason for hiding this comment

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

done

* create a local cache instance
*
* @param string $prefix
* @return \OC\Memcache\Cache
Copy link
Member

Choose a reason for hiding this comment

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

Same here

@codecov
Copy link

codecov bot commented Sep 19, 2017

Codecov Report

Merging #6571 into master will decrease coverage by 0.19%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master    #6571     +/-   ##
===========================================
- Coverage     53.06%   52.86%   -0.2%     
- Complexity    22552    22560      +8     
===========================================
  Files          1414     1413      -1     
  Lines         87741    88079    +338     
  Branches       1340     1340             
===========================================
+ Hits          46561    46565      +4     
- Misses        41180    41514    +334
Impacted Files Coverage Δ Complexity Δ
...nd/Db/Migrations/GenerateFromSchemaFileCommand.php 0% <0%> (ø) 17% <0%> (-1%) ⬇️
core/Migrations/Version13000Date20170718121200.php 0% <0%> (ø) 32% <0%> (+2%) ⬆️
...es/lib/Migration/Version1002Date20170919123342.php
core/Migrations/Version13000Date20170919121250.php
...lib/Migration/Version1004001Date20170825134824.php 0% <0%> (ø) 12% <0%> (?)
apps/files_trashbin/lib/Trashbin.php 72.53% <0%> (+0.24%) 136% <0%> (ø) ⬇️
lib/private/Mail/Message.php 95.45% <0%> (+0.33%) 19% <0%> (+1%) ⬆️

@@ -31,7 +31,7 @@
*/
interface ICacheFactory{
/**
* Get a memory cache instance
* Get a distributed memory cache instance
Copy link
Member

Choose a reason for hiding this comment

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

Since we now have a dedicated method to get a distributed cache, would it make sense to deprecate this ambiguous method and remove it in the future?

Copy link
Member

Choose a reason for hiding this comment

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

Yes!

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Robin Appelman <robin@icewind.nl>
@ChristophWurst ChristophWurst added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Sep 20, 2017
@MorrisJobke MorrisJobke merged commit e8d80ed into master Sep 20, 2017
@MorrisJobke MorrisJobke deleted the cachefactory-local-locking branch September 20, 2017 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants