Commit Graph

98 Commits

Author SHA1 Message Date
Peter Jaszkowiak
3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
2017-02-18 01:12:18 -07:00
Peter Jaszkowiak
2ba46808a1 ESlint one-var, fix comma-dangle 2017-02-17 20:20:42 -07:00
barisusakli
e1253f693a fix redis union 2016-12-23 14:26:05 +03:00
barisusakli
b71ab64cf4 organize dbal sorted code 2016-12-23 14:12:07 +03:00
Moritz Schmidt
e8e33a8a23 ZSET scores are float: parseInt => parseFloat
In Redis, scores of sorted sets can be floats – so we should use `parseFloat` instead of `parseInt` when converting from string to number.
Should not lead to #4939 again, as `new Date()` works regardless of whether it's being passed a float or integer.
2016-12-04 17:41:27 +01:00
barisusakli
5d6e2ad083 multiple test fixes 2016-11-23 17:15:36 +03:00
barisusakli
c8b5c181ff fix flag on redis
check if number is returned on tests
2016-10-25 19:14:56 +03:00
Barış Soner Uşaklı
c512a02c83 Merge pull request #5124 from yariplus/lexistuff
Add additional lexical dbal operations.
2016-10-18 12:17:02 +03:00
yariplus
af2122bdb9 fix lex tests maybe 2016-10-17 18:08:56 -04:00
barisusakli
4a0f67afdc search tests
new method emptydb
use emptydb instead of flushdb, flushdb  removes indices for mongo which
breaks search tests
initialize meta.config properly in tests
enable nodebb-plugin-dbsearch for tests
2016-10-17 23:34:14 +03:00
yariplus
be3b35dea3 fix callbacks and regex 2016-10-16 23:07:22 -04:00
yariplus
1bb44e2429 Allow lex min and max to be inclusive or exclusive. 2016-10-16 21:50:13 -04:00
yariplus
ef20757f3e zremrangebylex, zlexcount 2016-10-16 18:45:54 -04:00
yariplus
1fc5e5d0d3 getSortedSetRevRangeByLex 2016-10-16 14:48:29 -04:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
HeeL
3fa1c1f927 Fix space-infix-ops linter rule 2016-10-13 11:42:29 +02:00
barisusakli
0d09fcbee7 fix setAdd on redis for empty arrays 2016-09-28 12:18:02 +03:00
barisusakli
990ecc8cd2 sortedSetIntersectionCard 2016-09-16 13:01:11 +03:00
barisusakli
e1263f1057 sortedSetUnionCard 2016-09-09 13:19:14 +03:00
barisusakli
eabb745116 change union to match intersect
accept aggregate and withscores
2016-09-08 17:59:59 +03:00
barisusakli
3d56776ab0 fix tabs 2016-08-15 19:28:01 +03:00
barisusakli
6022fd984a closes #4945 2016-08-15 19:23:15 +03:00
barisusakli
c8a369f5c3 closes #4939 2016-08-13 20:02:48 +03:00
barisusakli
018f7ba65a closes #4307
ability to send an array of keys to getSortedSetRange
use getSortedSetRevRange instead of getSortedSetRevUnion
2016-03-03 19:52:48 +02:00
barisusakli
dcbf53bae3 moved search to dbsearch 2015-12-11 10:57:13 +02:00
barisusakli
aa577f4adc part 1
no upgrade script yet
2015-05-19 23:04:28 -04:00
barisusakli
7b550b13b9 display both redis/mongo info if available 2015-05-08 15:36:06 -04:00
Barış Soner Uşaklı
ba1afdf879 dont crash if callback isnt supplied fixes #3033 2015-04-15 11:51:38 -04:00
barisusakli
fa9fde43fb closes #2971 2015-04-13 17:29:48 -04:00
barisusakli
e2196af8ab part 2 of search changes 2015-03-15 00:12:52 -04:00
barisusakli
c7128bcc98 part 1 of search change 2015-03-14 23:00:24 -04:00
barisusakli
ec8fc8b97b dont do anything if id is falsy
added callback
2015-03-14 16:30:06 -04:00
psychobunny
b0628c2df8 missing semi-colons in database/ 2015-02-25 19:27:13 -05:00
barisusakli
3bcd8aefb0 deleteObjectFields method
cleaned up user reset
2015-02-17 22:22:06 -05:00
Barış Soner Uşaklı
749ce5f8e5 dont crash if callback isnt supplied to list methods 2015-02-11 12:01:55 -05:00
barisusakli
39cac43b96 if key isn't found dont error
Conflicts:
	src/database/redis/main.js
2015-01-29 19:40:51 -05:00
barisusakli
bd8a77a22b dont crash if callback isnt passed in 2015-01-22 16:23:38 -05:00
barisusakli
2c45dc6450 redis helpers 2015-01-22 16:21:36 -05:00
barisusakli
c379753341 upgrade scripts
upgrade groups to sorted set(groups:createtime) upgrade
upgrade groups:<name>:members to sorted set
new database methods
tests
2015-01-21 22:48:27 -05:00
barisusakli
96c27d29f4 dont crash if callback isn't supplied 2015-01-19 20:49:24 -05:00
Julian Lam
eb5b8ccec3 better check for group exist, groups with different cases can no longer be created, #2588 2015-01-19 10:46:14 -05:00
barisusakli
f67053df52 figure out pathname, dont crash if callback isnt supplied 2015-01-17 15:06:12 -05:00
barisusakli
4d5ed784a1 more hash tests
getObjectValues
isObjectField
deleteObjectField
incrObjectField
2014-12-30 18:41:13 -05:00
barisusakli
3e8c29e5f9 list tests 2014-12-29 16:20:35 -05:00
barisusakli
1cbf5ddfe9 only send back err on redis.deleteAll 2014-12-25 03:14:04 -05:00
barisusakli
7cf3719c80 fix rename and increment 2014-12-25 03:08:49 -05:00
barisusakli
bf54859a27 key tests 2014-12-25 01:53:28 -05:00
barisusakli
37235557bb fix callback in redis.setRemove 2014-12-24 15:52:37 -05:00
barisusakli
00fb3ab909 only send back error for sortedSetsRemove 2014-12-24 01:54:04 -05:00
barisusakli
cd41e192d1 closes #2546 2014-12-23 15:03:31 -05:00