PHPackages                             oralunal/taggable-memcached - 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. oralunal/taggable-memcached

ActiveLibrary[Caching](/categories/caching)

oralunal/taggable-memcached
===========================

Easy to manage Memcached library with tag feature

v1.0.3(2y ago)014MITPHPPHP &gt;=8.3

Since Apr 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/oralunal/taggable-memcached)[ Packagist](https://packagist.org/packages/oralunal/taggable-memcached)[ RSS](/packages/oralunal-taggable-memcached/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Install

```
composer require oralunal/taggable-memcached

```

Usage

```
use Oralunal\TaggableMemcached\Cache;

$memcached = new Cache::getInstance(server:'localhost', port:11211, prefix:'taggable_');

// Best Practise
$key = 'some_key';
try{
    if(!is_null($value = $memcached->get($cache_key))){
        // Do something with $value
    } else {
        // Generate the value and save it
        $value = 'some value';
        $memcached->set($cache_key, $value, 60);
    }
} catch(\Oralunal\TaggableMemcached\Exceptions\GetException $e){
    // Memcached failed to get the value
    // Log the error and define value here
    $value = 'some value'; // Don't save it to memcached, maybe there is a problem with memcached server.
} catch(\Oralunal\TaggableMemcached\Exceptions\SetException $e){
    // Memcached failed to set the value
    // Log the error
    // We don't need to define value here because we did it before saving it to the memcached server.
}

// Delete a value
$memcached->delete($key);

// Flush all values
$memcached->flush();

// Set a value with tags
$tags = ['tag1', 'tag2'];
$memcached->withTags($tags)->set($key, $value));

$tag = 'tag3';
$memcached->withTags($tag)->set($key, $value);

// Delete values by tag
$memcached->deleteByTag($tag);
```

TODOs

- Add tests
- Add more error handling and logging
- Add more documentation
- Check for other PHP versions (I've just tested with PHP 8.3)

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~0 days

Total

4

Last Release

863d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e5f91240abd67ed47abf703e5069261011ff82f47f864ba68a5511bbddeea62?d=identicon)[oralunal](/maintainers/oralunal)

---

Top Contributors

[![oralunal](https://avatars.githubusercontent.com/u/1948737?v=4)](https://github.com/oralunal "oralunal (13 commits)")

### Embed Badge

![Health badge](/badges/oralunal-taggable-memcached/health.svg)

```
[![Health](https://phpackages.com/badges/oralunal-taggable-memcached/health.svg)](https://phpackages.com/packages/oralunal-taggable-memcached)
```

###  Alternatives

[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)[phpfastcache/phpssdb

PHP SSDB Driver for phpFastCache

14736.9k1](/packages/phpfastcache-phpssdb)[rapidwebltd/rw-file-cache

RW File Cache is a PHP File-based Caching Library. Its syntax is designed to closely resemble the PHP memcache extension.

15196.8k7](/packages/rapidwebltd-rw-file-cache)[yuzuru-s/redis-recommend

Wrapping Redis's sorted set APIs for specializing recommending operations.

392.9k](/packages/yuzuru-s-redis-recommend)[ichhabrecht/intcache

Turn uncachable page objects into cacheable links

193.9k](/packages/ichhabrecht-intcache)

PHPackages © 2026

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