diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-08-30 05:17:20 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-09-24 19:32:20 -0300 |
commit | a10ae06bb33c6caaaf3a8474cc6d7b01c33abc9f (patch) | |
tree | 367f4bf69554baa714a15177af81f5f3700472bc /scripts/develop_mode.sh | |
parent | 0192f5923932ce738656c5b9ec25167a1b74386a (diff) |
[feat] first draft of sync_state in memory
This commit changes sync_state to be in memory, with all tests passing.
The memory variable for now is a dict with each key composed by
source_replica_uid and sync_id, replicating CouchDB implementation. Next
steps includes migrating this to Beaker and refactor/clean up code.
Changed the module's INFO dict to use Beaker's caching and adapted
methods to get and save from it. Still needs refactoring, all tests
passes.
Beaker is now using memory as default; It is configurable, but we aren't
opening the possibility of config now for security. We need to check
what can be misconfigured first.
We are not sure if beaker will be the definitive solution for server
side caching. This change isolates it with more granularity.
In order to replace it, just change get_cache_for to return the proper
caching object using another implementation. This caching object is
supposed to behave as a dict.
Diffstat (limited to 'scripts/develop_mode.sh')
0 files changed, 0 insertions, 0 deletions