afb2e68849
Implement locate_in_db() by hash.
2016-07-12 16:42:27 +01:00
01be1a94e5
Bugfix - files where not being stored reliably.
...
Some crashes were also happening.
2016-07-12 13:40:12 +01:00
d6682eb130
Call wrapper methods instead of plain run().
2016-07-12 12:30:53 +01:00
e0670ff433
New IncRedisBatch class.
...
Wraps Batch similarly to how IncRedis wraps Command.
2016-07-12 12:07:36 +01:00
64b87c52bb
Move *scan function from Command to IncRedis.
...
Pass down IncRedis as required to fix the build.
2016-07-12 10:55:45 +01:00
d0242e2721
New IncRedis class. Makes high-level access to Redis easier.
2016-07-12 10:43:32 +01:00
d46cb322b9
Implement locate_in_db().
2016-07-11 18:38:08 +01:00
645cf5858b
Implement find_all_sets.
2016-07-11 18:02:50 +01:00
bfdf849711
Implement delete_group.
2016-07-11 17:48:05 +01:00
e3fa82006f
Fix off-by-one error.
...
Also use undordered_set instead of set.
2016-07-11 17:47:00 +01:00
e5007cf96f
Use GroupIDType and FileIDType instead of uint.
2016-07-11 17:46:08 +01:00
bd06158d4c
Store group id and file id instead of full keys.
2016-07-11 17:44:54 +01:00
de00a4b469
Add and load dele_tag_if_in_set Lua script.
2016-07-10 14:01:43 +01:00
af7443c48b
Implement tagging by regex.
2016-07-10 14:00:51 +01:00
9c2f1d7403
Move tagging by id into a separate file.
2016-07-10 13:59:45 +01:00
01d587b7da
Move redis range to record data struct into a separate file.
2016-07-10 13:56:46 +01:00
d6e95eac8e
Enable tagging by id in Redis backend.
2016-07-09 14:57:58 +01:00
678e8c90d1
Revert "Load save and delete scripts upon connection to Redis."
...
This reverts commit 1aacca9e21
.
2016-07-08 21:35:31 +01:00
004ba83752
Fix find-by-hash function.
2016-07-08 21:32:09 +01:00
5b14823cb8
Implement storing scan result in Redis backend. Yay!
2016-07-08 19:52:55 +01:00
1aacca9e21
Load save and delete scripts upon connection to Redis.
2016-07-08 16:08:21 +01:00
afae0b6d11
Load Lua script search paths into a SearchPaths.
2016-07-08 15:18:26 +01:00
8d7d4c5555
Implement Script class.
2016-06-30 11:27:15 +01:00
cf9ac6b296
Add locking so async communication works correctly.
...
helgrind says it works. I think.
2016-06-29 22:51:45 +01:00
691bdd1d1e
Use new custom lexical_cast instead of the one from boost.
2016-06-15 22:38:25 +01:00
423effa6cb
Set client name in Redis to dindexer_v0.1.5
2016-06-14 19:10:10 +01:00
549ab7b16a
Write implementation for search_file_by_hash().
...
Note that the postgresql backend does something like
"select blah... where hash=$1 limit 1", so it only returns one match.
The SRANDMEMBER used in this implementation also returns one match,
but it's not deterministic I suppose.
2016-06-14 10:39:42 +01:00
ab43215f49
Use the right syntax for Redis command.
...
With this commit, scan subcommand can save all it needs into Redis.
2016-06-14 09:12:32 +01:00
efd7118189
Add support for single chars to the run() method.
2016-06-14 09:10:45 +01:00
e0a82cce2d
Fix SCAN iteration.
2016-06-13 10:57:42 +01:00
c1e79c435b
New ScanIterator class.
...
Not yet tested and only supporting the SCAN command for now, more to
come.
Also includes some refactoring that was needed to make everything work.
2016-06-10 20:33:11 +02:00
04b667485e
Add optional database selection parameter in yml file.
2016-06-10 09:55:37 +02:00
8bdb1f237f
Replace spaces with tabs
2016-06-09 22:55:38 +02:00
49a8e81fed
Restore adding sets into Redis using the new run() method.
...
Partial implementation - not for use in real world cases.
2016-06-09 22:20:22 +02:00
f7a7015c65
Start putting Redis stuff in a wrapper class.
...
Nonworking, but the project builds.
2016-06-09 19:24:08 +02:00
db23dcea3f
Add missing implementation and fix crashes in redis backend.
...
With this you can insert a new set (set only, no files) with dindexer-scan.
2016-06-07 23:13:24 +01:00
0ab66fa1f1
Stub implementation of a Redis backend.
2016-06-07 22:45:30 +01:00