WIP Redis support#30
Conversation
| * @return null if not exists, else a map with the data | ||
| **/ | ||
| public Map<String, Object> DataObjectRemoteDataMap_get(String _oid) { | ||
| RMap<String, String> res = redisson.getMap("_oid"); |
There was a problem hiding this comment.
Get the Map as part of the constructor,
Instead of _oid, use the "Table name", to avoid conflict with any existing "Tables"
Your current implementation, only stores 1 map globally, instead of a MAP of MAPS
There was a problem hiding this comment.
You can use the following as an analogy
- Redisson : The Database
- getMap : Table
- map.get(id) : Object
There was a problem hiding this comment.
We would need to also understand how redisson .getMap extraction will work with redis configured in LRU caching mode (https://redis.io/docs/manual/eviction/)
Which of the following occurs
- individual objects gets evicted (ideal)
- entire collection of objects, tag to a single map (table) gets evicted
- no go : random keys inside an object gets evicted
Codecov Report
@@ Coverage Diff @@
## master #30 +/- ##
============================================
+ Coverage 57.12% 58.94% +1.82%
- Complexity 1045 1330 +285
============================================
Files 82 88 +6
Lines 5306 6640 +1334
Branches 928 1151 +223
============================================
+ Hits 3031 3914 +883
- Misses 1880 2247 +367
- Partials 395 479 +84
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
… into redis-support
…s-dstack into redis-support
REDIS based support for dataobjectmap