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

qwazr / jdbc-cache-driver / 78 / 1
34%
master: 34%

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2017 07:15AM UTC
Files 15
Run time 0s
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

19 Oct 2017 07:12AM UTC coverage: 33.598% (+1.8%) from 31.821%
78.1

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

Source Files on job 78.1
  • Tree
  • List 0
  • Changed 8
  • Source Changed 8
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 78
  • Travis Job 78.1
  • 8226a356 on github
  • Prev Job for on master (#76.1)
  • Next Job for on master (#79.1)
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