PHPackages                             toastnz/dbcache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. toastnz/dbcache

ActiveSilverstripe-vendormodule[Database &amp; ORM](/categories/database)

toastnz/dbcache
===============

DataObject-based cache for SilverStripe

2.0.0(8mo ago)01.2k↓25%BSD-3-ClausePHP

Since Dec 15Pushed 8mo ago2 watchersCompare

[ Source](https://github.com/toastnz/dbcache)[ Packagist](https://packagist.org/packages/toastnz/dbcache)[ RSS](/packages/toastnz-dbcache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

DBCache
=======

[](#dbcache)

DataObject-based cache for SilverStripe.

Requirements
------------

[](#requirements)

- SilverStripe 4

Installation
------------

[](#installation)

```
composer require toastnz/dbcache

```

Set the default expiry time in minutes for cache entries

```
Toast\DBCache\Helpers\DBCache:
  expiry_minutes: 0
```

Whether to clear all cached data when **?flush** is invoked

```
Toast\DBCache\Extensions\ControllerDBCacheExtension:
  clear_on_flush: true
```

Manipulate cache entries

```
// Cache "filters" for 10 minutes under the namespace "product"
DBCache::set('product.filters', json_encode($products), 10);

// Retrieve from cache
DBCache::get('product.filters');

// Remove from cache
DBCache::clear('product.filters');

// Flush cached data for the "product" namespace
DBCache::flush('product');

// Flush all cached data
DBCache::flush();
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance61

Regular maintenance activity

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~333 days

Total

4

Last Release

249d ago

Major Versions

1.0.1 → 2.0.02025-09-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/49888163?v=4)[Leandro Palmieri](/maintainers/leandro-toastnz)[@leandro-toastnz](https://github.com/leandro-toastnz)

---

Top Contributors

[![beetpix](https://avatars.githubusercontent.com/u/66008824?v=4)](https://github.com/beetpix "beetpix (2 commits)")

---

Tags

databasesilverstripecache

### Embed Badge

![Health badge](/badges/toastnz-dbcache/health.svg)

```
[![Health](https://phpackages.com/badges/toastnz-dbcache/health.svg)](https://phpackages.com/packages/toastnz-dbcache)
```

###  Alternatives

[silverstripe/postgresql

SilverStripe now has tentative support for PostgreSQL ('Postgres')

16258.1k2](/packages/silverstripe-postgresql)[ytake/laravel-couchbase

Couchbase providers for Laravel

3051.9k](/packages/ytake-laravel-couchbase)[silverstripe/mssql

Adds MSSQL support to SilverStripe

157.8k1](/packages/silverstripe-mssql)[brettt89/silverstripe-garbage-collector

SilverStripe Garbage Collector module

109.6k](/packages/brettt89-silverstripe-garbage-collector)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
