@mediaurl/cassandra-cache
v2.3.1
Published
MediaURL Cassandra cache wrapper
Downloads
32
Readme
MediaURL Cassandra caching engine
Cassandra caching engine for MeduaURL addons.
You can find the caching documentation here.
Usage with your addon
# Build your addon
npm run build
# Install the caching engine
npm i @mediaurl/cassandra-cache
# Setup environment
export LOAD_MEDIAURL_CACHE_MODULE=@mediaurl/cassandra-cache
export CASSANDRA_CONFIG=address-of-your-server.com
# Start the addon server
npm start
Testing
# Start a local cassandra database server
docker run --rm -ti -p 9042:9042 cassandra
# Run the tests
CASSANDRA_CONFIG=localhost npm run test