Clarence Ngoh
93958167f4
Merge branch 'version-2' into server-2.0/caching-invalidation
2018-06-21 11:28:24 -07:00
Evans Hauser
9af856c2c8
Typescript Improvements and esModuleInterop fix ( #1210 )
...
* add string input to gql tag
* remove esModuleInterop, tested locally
* change IMPORT_FUNCTION to something real
* fix the rest of the tests
2018-06-20 16:21:50 -07:00
clarencenpy
658be1726d
improve safety when initializing unknown tags
...
use `incr` instead of `set` that could potentially override a version that another process has set
2018-06-20 11:54:15 -07:00
clarencenpy
3a579564cf
add proper types to all variables
2018-06-20 11:54:13 -07:00
clarencenpy
89ee901558
refactor InMemoryKeyValueCache to apollo-server-caching
and add cache invalidation support
2018-06-20 11:52:48 -07:00
clarencenpy
af9b4e9af4
add support for adding cache tags and invalidation by tags
2018-06-20 11:44:04 -07:00
clarencenpy
ab8562ef42
added @types
2018-06-20 11:30:40 -07:00
clarencenpy
e7a05000f8
export test suite for cache connectors from apollo-server-caching
2018-06-20 11:30:40 -07:00
Martijn Walraven
655ead3b1b
Move shared mocks to top-level and enforce noImplicitAny
2018-06-20 12:21:52 +02:00
Martijn Walraven
3f3b0eb1f8
Rename Memcached and Redis cache classes
2018-06-20 10:04:37 +02:00
clarencenpy
958fa65ddb
Update data source docs and add instructions for Memcached and Redis caches
2018-06-20 10:04:37 +02:00
Clarence Ngoh
43627ec221
Add support for Redis and Memcached with ttls ( #1191 )
...
* Refactored caching connectors into their own packages
- apollo-server-caching (exports interface for KeyValueCache)
- apollo-server-caching-memcached
- apollo-server-caching-redis
One issue now is that there is duplication of mocks and test code in each of the packages. It would be better if we had centralized integration tests for all cache connectors, community contributed or otherwise.
* export test suite for cache connectors from `apollo-server-caching`
* fixed tsconfig.json
* added @types
2018-06-18 19:36:51 -07:00