Skip to content

Conversation

@okobsamoht
Copy link

Hi,
thanks for this great job.
i found this very usefull and i decided to use it with my current parse-server app.
it works now with parse-server >= 6.0.0

here are the modules upgraded:

  cacheman-redis         ^1.1.2   →    ^2.1.0 
  @babel/cli             ^7.1.2   →   ^7.25.6 
  @babel/core            ^7.1.2   →   ^7.25.2 
  @babel/preset-env      ^7.1.0   →   ^7.25.4 
  babel-loader           ^8.0.4   →    ^9.2.1 
  eslint                ^4.16.0   →   ^9.11.0 
  eslint-plugin-mocha   ^4.11.0   →   ^10.5.0 
  mocha                  ^5.2.0   →   ^10.7.3 
  parse                  ^2.1.0   →    ^5.3.0 
  should                ^13.2.1   →   ^13.2.3 
  webpack               ^4.22.0   →   ^5.94.0 
  webpack-cli            ^3.1.2   →    ^5.1.4 
  webpack-dev-server     ^3.1.9   →    ^5.1.0 

here is the test result:

 parse-cache
    ✔ should have cache method after initialization
    ✔ should cache a simple query that uses promises with then (836ms)
    ✔ should cache a simple query that uses promises (925ms)
    ✔ should not cache the same query w/out a ttl defined (1840ms)
    ✔ should return a Parse model from cached and non-cached results (410ms)
    ✔ should cache a query that returns no results (841ms)
    ✔ should correctly cache queries using select (1635ms)
    ✔ should correctly cache queries using distinct (1945ms)
    ✔ should correctly cache queries using skip (1229ms)
    ✔ should correctly cache queries using limit (3251ms)
    ✔ should correctly cache the same query with different condition orders (783ms)
    ✔ should cache a findOne query (1196ms)
    ✔ should cache a regex condition properly (1246ms)
    ✔ should cache a query rerun many times (826ms)
    ✔ should expire the cache (2047ms)
    ✔ should clear a custom cache key (1377ms)
    ✔ should cache a count query (822ms)
    ✔ should cache a count query with zero results (1796ms)
    ✔ should correctly cache a query with a sort order (1226ms)


  19 passing (51s)

thnaks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant