Skip to content

Conversation

@steven-supersolid
Copy link
Contributor

This is to make it possible to configure caching from index.js:

var InMemoryCacheAdapter = require('parse-server').InMemoryCacheAdapter;

var cacheAdapter = new InMemoryCacheAdapter({
            ttl: Number(process.env.PARSE_SERVER_CACHE_TTL)
        });

var api = new ParseServer({
    ...
    cacheAdapter: cacheAdapter
});

@@ -1,9 +1,9 @@
import winston from 'winston';
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also removed this unused import

@blacha
Copy link
Contributor

blacha commented Jul 2, 2016

Looks good to me

@TylerBrock
Copy link
Contributor

Same here.

@TylerBrock TylerBrock merged commit d1cdea0 into parse-community:master Jul 2, 2016
@steven-supersolid steven-supersolid deleted the steven.expose.memoryadapter branch August 22, 2016 08:59
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Mar 15, 2017
rsouzas pushed a commit to back4app/parse-server that referenced this pull request Mar 16, 2017
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.

3 participants