Commit Graph

49 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
75816deca7 add cache to redis (#6917)
* add cache to redis

move out cache module from mongo

* fix redis tests

* add callback noop

* fix typo

* del cache on field delete

* make redis/mongo caches separate
2018-11-07 15:04:56 -05:00
Barış Soner Uşaklı
18d0deeccb update deprecated methods (#6794) 2018-09-26 15:02:57 -04:00
Barış Soner Uşaklı
bce640e514 closes #6340 2018-03-03 12:31:27 -05:00
Barış Soner Uşaklı
5146f43b33 remove console.log 2018-01-03 14:38:09 -05:00
Barış Soner Uşaklı
87d40e9e78 fix increment to use data 2018-01-03 14:24:07 -05:00
Barış Soner Uşaklı
cbaa977233 fix type on mongodb if key has expireAt 2017-12-30 11:41:36 -05:00
Barış Soner Uşaklı
ea8cf6545c change db.set/get to use data field instead of value 2017-12-18 20:21:38 -05:00
Barış Soner Uşaklı
e7318a1cea Mongo cache (#6002)
* cache mongodb objects

remove user settings cache since it is cached at the object level

* removed indexOf from isMemberOfSets

* change has to get, change maxAge to 0
2017-10-23 18:31:16 -04:00
Barış Soner Uşaklı
108f84fd19 add type to dbal 2017-10-20 13:51:07 -04:00
Julian Lam
ad14b0d60b more fixes for #5660 2017-05-09 15:07:59 -04:00
Peter Jaszkowiak
4bb49a7171 ESlint no-unused-vars 2017-02-18 15:05:36 -07:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
feb8405f95 ESlint eol-last 2017-02-18 02:30:48 -07:00
Peter Jaszkowiak
a038c66549 ESlint quotes 2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
277a7fb8b4 ESlint key-spacing, no-trailing-spaces 2017-02-18 01:27:46 -07: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
barisusakli
e462fadd94 init express/webserver for tests 2016-10-16 06:03:09 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
dcbf53bae3 moved search to dbsearch 2015-12-11 10:57:13 +02:00
barisusakli
e2f590e0b4 only return id 2015-10-17 20:12:51 -04:00
Barış Soner Uşaklı
fd87bedc90 fix indent 2015-08-12 14:54:49 -04:00
Barış Soner Uşaklı
0d789261a9 filter falsy check valid 2015-08-12 14:49:26 -04:00
barisusakli
d9af2242a7 store id as int 2015-05-14 22:04:53 -04:00
barisusakli
7b550b13b9 display both redis/mongo info if available 2015-05-08 15:36:06 -04:00
barisusakli
6c0e07c384 Merge remote-tracking branch 'origin/master' into mongodb-3.0-driver-2.0 2015-03-20 17:52:04 -04:00
barisusakli
518aec6e76 modified indices, removed key 2 collections now 2015-03-15 03:18:24 -04:00
barisusakli
ec7caea368 fix search on mongo 2015-03-15 01:45:24 -04:00
barisusakli
78c65aee05 even more search changes 2015-03-15 01:12:13 -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
Barış Soner Uşaklı
6bd3c54a03 fix findAndModify
temp fix for connect-mongo
create admin after categories
2015-03-03 16:16:32 -05:00
Barış Soner Uşaklı
52aa7d27e8 #2761 2015-02-24 11:58:09 -05:00
Barış Soner Uşaklı
9de0c0cdd4 closes #2761 2015-02-24 11:55:16 -05:00
barisusakli
7cf3719c80 fix rename and increment 2014-12-25 03:08:49 -05:00
barisusakli
410d9fa4fa fix more tests 2014-12-25 03:00:05 -05:00
barisusakli
81e4bcd358 fix rename to multi 2014-11-18 15:50:32 -05:00
barisusakli
0a44d3f5e0 moved updateCategoryField out, db.delete only sends back err 2014-11-15 22:41:45 -05:00
barisusakli
5f2a66295c check keys 2014-09-21 13:30:20 -04:00
barisusakli
1bad2f79ee show megabyte values 2014-09-18 22:24:14 -04:00
barisusakli
2252ab7479 notifications.prune
run every hour
dont get more than 500 notifications
2014-09-07 03:17:51 -04:00
barisusakli
f81acd37db added indices on search key and id for mongo 2014-09-03 23:43:07 -04:00
barisusakli
94d050fd4f removed helpers.done 2014-09-03 01:13:28 -04:00
barisusakli
d00740703b use the new $text query from mongo 2.6 2014-07-21 14:18:42 -04:00
barisusakli
e6d8e9c959 searchIndex callbacks 2014-06-24 09:15:44 -04:00
Julian Lam
e64c1bfec3 closed #1453 2014-05-11 11:45:20 -04:00
Julian Lam
bab140c396 added pexpire and pexpireAt methods for redis and mongo. Added emoticons for leveldb (as per existing implementation by @psychobunny LOL) 2014-05-11 10:31:32 -04:00
psychobunny
bba3df6802 moving db.close into the parent module 2014-04-14 13:51:45 -04:00
psychobunny
46b6a93e98 organizing mongo driver 2014-04-11 15:44:53 -04:00