Cory Imdieke
2b3d4e5d3c
fix: Redis 4 does not reconnect after unhandled error ( #8706 )
2023-08-30 02:52:13 +02:00
Daniel
c2e4f8369b
refactor: Upgrade lru-cache from 7.12.0 to 9.1.1 ( #8559 )
2023-05-25 23:59:42 +02:00
Lucas Coratger
9e43bc2fa0
docs: Change API docs template to jsdoc-clean-theme ( #8519 )
2023-04-29 16:53:54 +02:00
dblythy
7d622f06a4
feat: Upgrade Redis 3 to 4 ( #8293 )
...
BREAKING CHANGE: This release upgrades to Redis 4; if you are using the Redis cache adapter with Parse Server then this is a breaking change as the Redis client options have changed; see the [Redis migration guide](https://github.com/redis/node-redis/blob/redis%404.0.0/docs/v3-to-v4.md ) for more details (#8293 )
2022-11-11 01:16:50 +01:00
Antoine Cormouls
e90a5183ec
refactor: replace deprecated LRU cache methods ( #8266 )
2022-11-01 21:33:14 +01:00
Antoine Cormouls
72fac8a5fc
refactor: lru-cache maxAge to ttl ( #8039 )
2022-06-13 15:29:50 +02:00
Diamond Lewis
a02014f557
Improve single schema cache ( #7214 )
...
* Initial Commit
* fix flaky test
* temporary set ci timeout
* turn off ci check
* fix postgres tests
* fix tests
* node flaky test
* remove improvements
* Update SchemaPerformance.spec.js
* fix tests
* revert ci
* Create Singleton Object
* properly clear cache testing
* Cleanup
* remove fit
* try PushController.spec
* try push test rewrite
* try push enqueue time
* Increase test timeout
* remove pg server creation test
* xit push tests
* more xit
* remove skipped tests
* Fix conflicts
* reduce ci timeout
* fix push tests
* Revert "fix push tests"
This reverts commit 05aba62f1cbbca7d5d3e80b9444529f59407cb56.
* improve initialization
* fix flaky tests
* xit flaky test
* Update CHANGELOG.md
* enable debug logs
* Update LogsRouter.spec.js
* create initial indexes in series
* lint
* horizontal scaling documentation
* Update Changelog
* change horizontalScaling db option
* Add enableSchemaHooks option
* move enableSchemaHooks to databaseOptions
2021-03-16 16:05:36 -05:00
Diamond Lewis
32fc45d2d2
Add KeyPromiseQueue to Push and Job StatusHandlers ( #7267 )
...
* Add KeyPromiseQueue to Push and Job StatusHandlers
* Update CHANGELOG.md
* Update CHANGELOG.md
2021-03-15 18:51:46 -05:00
Diamond Lewis
1666c3e382
[WIP] Enable test suite to be randomized ( #7265 )
...
* initial run
* Update ParseGraphQLServer.spec.js
* temporarily enable reporter
* Bump retry limit
* fix undefined database
* try to catch error
* Handle LiveQueryServers
* Update Config.js
* fast-fail false
* Remove usage of AppCache
* oops
* Update contributing guide
* enable debugger, try network retry attempt 1
* Fix ldap unbinding
* move non specs to support
* add missing mock adapter
* fix Parse.Push
* RestController should match batch.spec.js
* Remove request attempt limit
* handle index.spec.js
* Update CHANGELOG.md
* Handle error: tuple concurrently updated
* test transactions
* Clear RedisCache after every test
* LoggerController.spec.js
* Update schemas.spec.js
* finally fix transactions
* fix geopoint deadlock
* transaction with clean database
* batch.spec.js
2021-03-15 02:04:09 -05:00
Diamond Lewis
033a0bd443
Fix Prettier ( #7066 )
2020-12-13 11:19:04 -06:00
promisenxu
67bf868208
Handle shutdown for RedisCacheAdapter ( #6658 )
...
* Handle shutdown for RedisCacheAdapter
* connected value need to be tested in setTimeout
Co-authored-by: Promise Xu <promise@klido.me >
2020-04-29 19:51:58 -07:00
Diamond Lewis
edfa1df454
Cleanup Schema cache per request ( #6126 )
...
* remove enableSingleSchemaCache from test
* clear schema cache per request
2019-10-11 15:27:15 -05:00
Georges Jamous
214aa2e450
using per-key basis queue ( #5420 )
...
* adding KeyPromiseQueue
* nit
* removing secondary object and using a tuple
* using array
* nits
* some tests
* Minor refinements
* removing old adapter
* dummy change, travis test not found
* travis test missing, dummy change
* revrting mistake
* reverting mistake
* indentation fix
* additional tests for coverage
* extending coverage
* nits
* fixing mistake
* better code
2019-04-02 10:07:31 -07:00
Florent Vilmart
d83a0b6808
Use Prettier JS ( #5017 )
...
* Adds prettier
* Run lint before tests
2018-09-01 13:58:06 -04:00
Florent Vilmart
942b9b5b1a
Adds documentations for adapters and main constructors ( #4951 )
...
* wip
* Adds documentations for adapters, and constructors
* nits
* nit
2018-08-15 10:47:21 -04:00
Florent Vilmart
3079270b3e
Optimizations ( #4135 )
...
* removes costly json serialization to InMemoryCacheAdapter
* Always cache a copy of the array
* Use own mapValues
* Makes sure we dont make unnecessary calls to the logger
* Do not bypass loggers with silent logging (only applies to stdout)
* warn is not warning
* use ===
* Wrap logRequest / logResponse in the loggerController for more granular control
Also give the ability to pass functions to the logger so we don't serialize too early in JSON (costly)
* reconfiguring winston would override the transports levels and make subsequent tests fail
2017-09-04 20:47:49 -04:00
Florent Vilmart
95430bb4e8
Use LRU cache as default mechanism for caching in memory ( #3979 )
...
* Use LRU cache as default mechanism for caching in memory
* Return null as what’s expected
2017-06-30 16:54:35 -04:00
Ryan Foster
e6006e800e
adding TTL option for redis cache adapter ( #3397 )
...
* adding TTL option for redis cache adapter
* adding test for RedisCacheAdapter
* Fixing adapater var name
* changing timeout
* updating default time
* Fix the redis cache spec to construct the cache with the anticipated ttl
make timeout values really really small so our test run fast :).
2017-02-27 12:29:15 -08:00
Jeremy Louie
6ae0675010
Use flushdb instead of flushall in RedisCacheAdapter ( #3523 )
2017-02-18 19:36:43 -05:00
Arthur Cinader
ca286b7108
Enable prefer-const lint rule ( #3202 )
2016-12-07 18:17:05 -05:00
Florent Vilmart
8c2c76dd26
Adds liniting into the workflow ( #3082 )
...
* initial linting of src
* fix indent to 2 spaces
* Removes unnecessary rules
* ignore spec folder for now
* Spec linting
* Fix spec indent
* nits
* nits
* no no-empty rule
2016-11-24 15:47:41 -05:00
Tyler Brock
801308d9b7
RedisCacheAdapter: add some additional checks and defaults ( #2991 )
2016-11-02 15:13:55 -07:00
Tyler Brock
33ebedfd6a
Expire values in RedisCacheAdapter ( #2988 )
2016-11-02 08:39:49 -04:00
Florent Vilmart
ddb0fb8a27
Adds redis cache for distributed environments ( #2691 )
...
* Makes schemaCache clearning promise-based
* Adds redis cache adapter for distributed systems
* Adds redis service to travis
* allow pg to fail
2016-09-17 13:52:02 -07:00
Yuki Takeichi
fe62e92aa1
Add NullCacheAdapter ( #2636 )
...
* Add NullCacheAdapter
* clear returns promise explicitly
* Add NullCacheAdapter accessor
2016-09-07 08:08:09 -04:00
Drew
392102eb97
Cache users by objectID, and clear cache when updated via master key ( fixes #1836 ) ( #1844 )
...
* Cache users by objectID, and clear cache when updated via master key
* Go back to caching by session token. Clear out cache by querying _Session when user is modified with Master Key (ew, hopefully that can be improved later)
* Fix issue with user updates from different sessions causing stale reads
* Tests aren't transpiled...
* Still not transpiled
2016-05-22 09:59:36 -07:00
Blayne Chard
8c09c3dae1
Adding Caching Adapter, allows caching of _Role and _User queries ( fixes #168 ) ( #1664 )
...
* Adding Caching Adapter, allows caching of _Role and _User queries.
2016-05-18 12:12:30 +12:00