barisusakli
e1253f693a
fix redis union
8 years ago
barisusakli
b71ab64cf4
organize dbal sorted code
8 years ago
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.
9 years ago
barisusakli
5d6e2ad083
multiple test fixes
9 years ago
barisusakli
c8b5c181ff
fix flag on redis
...
check if number is returned on tests
9 years ago
yariplus
af2122bdb9
fix lex tests maybe
9 years ago
yariplus
be3b35dea3
fix callbacks and regex
9 years ago
yariplus
1bb44e2429
Allow lex min and max to be inclusive or exclusive.
9 years ago
yariplus
ef20757f3e
zremrangebylex, zlexcount
9 years ago
yariplus
1fc5e5d0d3
getSortedSetRevRangeByLex
9 years ago
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
9 years ago
HeeL
3fa1c1f927
Fix space-infix-ops linter rule
9 years ago
barisusakli
990ecc8cd2
sortedSetIntersectionCard
9 years ago
barisusakli
e1263f1057
sortedSetUnionCard
9 years ago
barisusakli
eabb745116
change union to match intersect
...
accept aggregate and withscores
9 years ago
barisusakli
3d56776ab0
fix tabs
9 years ago
barisusakli
6022fd984a
closes #4945
9 years ago
barisusakli
c8a369f5c3
closes #4939
9 years ago
barisusakli
018f7ba65a
closes #4307
...
ability to send an array of keys to getSortedSetRange
use getSortedSetRevRange instead of getSortedSetRevUnion
9 years ago
barisusakli
aa577f4adc
part 1
...
no upgrade script yet
10 years ago
barisusakli
2c45dc6450
redis helpers
10 years ago
barisusakli
c379753341
upgrade scripts
...
upgrade groups to sorted set(groups:createtime) upgrade
upgrade groups:<name>:members to sorted set
new database methods
tests
10 years ago
barisusakli
00fb3ab909
only send back error for sortedSetsRemove
10 years ago
barisusakli
1fe82ee452
added 2 new methods to dbal
...
getSortedSetRangeWithScores
getSortedSetRangeByScoreWithScores
11 years ago
barisusakli
740c336480
typo
11 years ago
barisusakli
dba20160ce
check length
11 years ago
barisusakli
212e15b2c2
fixin redis zrevrangebyscore to return value score
11 years ago
barisusakli
5fc760c6c4
unread changes
11 years ago
barisusakli
9d25772b53
added sortedSetIncrBy
11 years ago
barisusakli
c5c97c784a
optimize getPostIndices
...
only use 1 set when its in a topic
11 years ago
barisusakli
b1f492dec3
fix redis bulk zadd
11 years ago
barisusakli
31eccb8e7f
configurable post delay before first post
11 years ago
barisusakli
35a903f9c8
closes #2074
...
when new notifications are pushed to uids clear their old notifications.
11 years ago
barisusakli
493d0dea1e
part 1 of notif refactor
11 years ago
barisusakli
5222edb624
sortedSetsAdd
...
using mullti/bulk for redis/mongo
lets you add a score/value pair to multiple sorted sets at once
11 years ago
barisusakli
84d0e64361
fix topic move
11 years ago
barisusakli
cd096f8832
sortedSetScores for tag counts
11 years ago
barisusakli
e10eaf0d50
added tag counts to api return
11 years ago
barisusakli
e137baccd9
fixed ip:recent weird
11 years ago
barisusakli
b4182f57fe
simplified callback
11 years ago
barisusakli
eeb4c9f487
optimize getPostSummaryByPids
11 years ago
barisusakli
3829019bfa
removed optional params
11 years ago
barisusakli
89bb11a58c
closes #1880
11 years ago
barisusakli
f80b3c3b66
simpler union
11 years ago
barisusakli
7f534cc7b8
sorted set refactor
11 years ago
barisusakli
fd12ec763a
sortedSetsRemove
...
instead of calling sortedSetRemove() one at a time for each id remove
value from multiple sortedSets with one db call
11 years ago
Julian Lam
7afe3bea59
added getSortedSetRevUnion... just because.
11 years ago
Julian Lam
6e597a9cdb
fixed tests, and added getSortedSetUnion method to redis db, added test for new redis method
11 years ago
barisusakli
746df87d89
upgrade tags to sorted set
11 years ago
psychobunny
9ad7ce9ca8
organizing redis driver
11 years ago