Git Product home page Git Product logo

rdbcache's Introduction

This README serves as a quick start docuement. For more detailed documentation, please visit website: http://rdbcache.com

Install rdbcache

rdbcache is a java application. It requires Java version 1.8+ runtime environment.

For Mac/Linux:

curl https://raw.githubusercontent.com/rdbcache/rdbcache/master/download/install | sh

# check if OK
rdbcache -v

Put following environment variables in your ~/.bash_profile.
Please replace the values with the proper ones for your environment.

export RDBCACHE_PORT=8181
export REDIS_SERVER=localhost
export DATABASE_NAME=testdb
export DATABASE_SERVER=localhost
export DB_USER_NAME=dbuser
export DB_USER_PASS=rdbcache

rdbcache

For Windows:

click download rdbcache.zip

# check if OK
java -jar rdbcache.jar -v

Please replace the values with the proper ones for your environment.

SET RDBCACHE_PORT=8181
SET REDIS_SERVER=localhost
SET DATABASE_NAME=testdb
SET DATABASE_SERVER=localhost
SET DB_USER_NAME=dbuser
SET DB_USER_PASS=rdbcache

java -jar rdbcache.jar

Playing with rdbcache

curl http://localhost:8181/v1/set/my-hash-key/my-value
{"timestamp":1518188737321,"duration":"0.00639","key":"my-hash-key","trace_id":"5554d502d58448e0a137196af0a4b1fa"}

curl http://localhost:8181/v1/get/my-hash-key
{"timestamp":1518188797475,"duration":"0.000454","key":"my-hash-key","data":"my-value","trace_id":"6f7c05360ec74b12bda80ec692030031"}

curl http://localhost:8181/v1/select/rdbcache_monitor?limit=3
...

curl http://localhost:8181/v1/select/rdbcache_stopwatch?limit=3
...

You can find all the available APIs and complete documentation at http://rdbcache.com.

Playing with source code

rdbcache uses maven and build on top of Java Spring Boot 1.5.10. It requires maven 3.5+ and JDK version 1.8+.

Download source from github

git clone https://github.com/rdbcache/rdbcache.git

cd rdbcache

mvn clean test

mvn clean spring-boot:run

mvn clean test package

rdbcache's People

Contributors

rdbcache avatar samswen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rdbcache's Issues

Custom Query

Hello RDBCache,

Could I get the data by a custom query with some tables ?

Hope to hear from you soon !
Thank you.

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.