Giter Club home page Giter Club logo

Comments (5)

lhazlewood avatar lhazlewood commented on July 24, 2024

The Stormpath SDK has caching built in at the foundation for all resources for exactly this reason :) I suspect it is just a matter of enabling it when configuring.

@rdegges do you have an example of how to do this for Express?

from express-stormpath.

rdegges avatar rdegges commented on July 24, 2024

Yoooooo.

I've been looking into this. Here's what's happening:

  • By default, the Stormpath client uses an in-memory cache, so subsequent calls to get resources will come out of memory. I believe that Express isn't re-using the client object possible, which might be causing issues with the in-memory cache.
  • I am working on a new branch currently which allows you to specify cache options in stormpath.init, this will let you choose how you want to do caching (memory, redis, memcached, etc.).
  • The new branch will get released today, and this should allow you to configure a proper cache backend to avoid this sorta stuff =)

from express-stormpath.

rdegges avatar rdegges commented on July 24, 2024

Just deployed a new release (0.1.5) which has cache support built-in now. The docs are going to be pushed soon.

=)

from express-stormpath.

synthmusic avatar synthmusic commented on July 24, 2024

Just got a chance to pull the latest update, and it works great "out of the box", thanks!

from express-stormpath.

rdegges avatar rdegges commented on July 24, 2024

Awesome! Glad it's working for ya. The new caching options should also make it easy to add in redis / memcached support as well!

from express-stormpath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.