Skip to content

Implement simple caching option#120

Open
shosca wants to merge 1 commit into
masterfrom
caching
Open

Implement simple caching option#120
shosca wants to merge 1 commit into
masterfrom
caching

Conversation

@shosca

@shosca shosca commented Jan 26, 2019

Copy link
Copy Markdown
Owner

Mostly from sqlalchemy dogpile caching recipe with some tweaks

@shosca shosca force-pushed the caching branch 2 times, most recently from 0391afc to d9ed40d Compare January 26, 2019 17:02
@shosca shosca requested a review from miki725 January 26, 2019 17:07
@coveralls

coveralls commented Jan 26, 2019

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 1087

  • 44 of 44 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build #904: 0.0%
Covered Lines: 3572
Relevant Lines: 3572

💛 - Coveralls

Comment thread django_sorcery/db/strategy_options.py Outdated
Comment thread django_sorcery/db/strategy_options.py
Comment thread django_sorcery/db/query.py Outdated
Comment thread tests/testapp/models.py
db = databases.get("test")


class DummyCache(object):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maybe simple in-memory variant in sorcery itself? are there other libs there which can plug and play with this interface?

@shosca shosca Feb 4, 2019

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

dogpile.cache should work ootb

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

cool. then prolly a good idea to add to somewhere

@@ -0,0 +1,75 @@
# -*- coding: utf-8 -*-

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants