• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

qwazr / jdbc-cache-driver / 78
34%

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2017 07:15AM UTC
Jobs 1
Files 15
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
78

push

travis-ci

emmanuel-keller
Add support for In Memory JDBC cache

There are some use cases where we know we have enough memory
and we want to be as fast as possible so we just want to hold
in memory a ResultSet related to a given Statement.

This commit implements a new type of cache using memory
instead of hard disk files.

It uses a naive implementation with ByteArrayStreams which is not recommended for production.

```java
// Initialize the cache driver
Class.forName("com.qwazr.jdbc.cache.Driver");

// Provide the URL and the Class name of the backend driver
Properties info = new Properties();
info.setProperty("cache.driver.url", "jdbc:derby:memory:myDB;create=true");
info.setProperty("cache.driver.class", "org.apache.derby.jdbc.EmbeddedDriver");
// Get your JDBC connection
Connection cnx = DriverManager.getConnection("jdbc:cache:mem:my-memory-cache", info);
```

The syntax of the URL can be:

* *jdbc:cache:file:{path-to-the-cache-directory}* for on disk cache
* *jdbc:cache:mem:{name-of-the-cache}* for in memory cache

551 of 1640 relevant lines covered (33.6%)

0.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 78.1 19 Oct 2017 07:15AM UTC 0
33.6
Travis Job 78.1
Source Files on build 78
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #78
  • 8226a356 on github
  • Prev Build on master (#76)
  • Next Build on master (#79)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc