PHPackages                             gefar/tfilecache - 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. [Caching](/categories/caching)
4. /
5. gefar/tfilecache

ActiveLibrary[Caching](/categories/caching)

gefar/tfilecache
================

Taggable File Cache driver for Laravel. Allows the use of Cache tags with a file cache.

2.1.2(5y ago)07PHP

Since Apr 27Pushed 5y agoCompare

[ Source](https://github.com/gefar/taggedFileCache)[ Packagist](https://packagist.org/packages/gefar/tfilecache)[ RSS](/packages/gefar-tfilecache/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

Laravel Taggable File Cache
===========================

[](#laravel-taggable-file-cache)

This package provides a custom file [cache driver](https://laravel.com/docs/5.1/cache#adding-custom-cache-drivers) that supports [Cache Tags](https://laravel.com/docs/5.1/cache#cache-tags) for Laravel 5.1 or Lumen 5.2+.

Usage
-----

[](#usage)

This product is publicly available under the terms of the MIT license included in this repository. Please refer to the current [brand guidelines](https://www.kent.ac.uk/brand) for use of the existing brand.

Installation and Requirements
-----------------------------

[](#installation-and-requirements)

First, you'll need to require the package with Composer:

```
composer require Gefar/tfilecache

```

Then, update `config/app.php` by adding an entry for the service provider.

```
'providers' => [
    // ...
    Gefar\Cache\TaggableFileCacheServiceProvider::class
];

```

Finally, add the necessary config to `config\cache.php`.

```
'default' => env('CACHE_DRIVER', 'tfile'),

'stores' => [

		'tfile' => [
			'driver' => 'tfile',
			'path'   => storage_path('framework/cache')
		],
		// ...
],

```

Optional Configuration
----------------------

[](#optional-configuration)

There are some optional config options available in the store definition above:

`queue` : accepts the string name of a queue to use for [tag clean up](#tag-cleanup), will use the default queue if omitted. `separator` : defines the separator character or sequence to be used internally, this should be chosen to **never** collide with a key value. defaults to `~#~` if omitted.

Tag Cleanup
-----------

[](#tag-cleanup)

To offset the work of cleaning up cache entries when a tag is flushed this task is added as a Job and queued using laravel's inbuilt [queueing](https://laravel.com/docs/5.1/queues). Note: laravel's default queue driver is `sync` which will result in the job being executed synchronously, it is strongly advised you use an alternate queue driver with appropriate workers to offset this work if you wish to use this cache driver.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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

Unknown

Total

1

Last Release

1877d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24873472?v=4)[Thomas FARGES](/maintainers/Gefar)[@gefar](https://github.com/gefar)

---

Top Contributors

[![gjmh-unikent](https://avatars.githubusercontent.com/u/9929369?v=4)](https://github.com/gjmh-unikent "gjmh-unikent (15 commits)")[![gefar01](https://avatars.githubusercontent.com/u/217210038?v=4)](https://github.com/gefar01 "gefar01 (6 commits)")

### Embed Badge

![Health badge](/badges/gefar-tfilecache/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)

PHPackages © 2026

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