PHPackages                             takman1/phalcon-session-redis - 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. takman1/phalcon-session-redis

ActiveLibrary[Caching](/categories/caching)

takman1/phalcon-session-redis
=============================

Phalcon sessions on Redis without deprecations. php-redis &gt;= 5, php &gt;= 7, 4 &gt; php-phalcon &gt;= 3

1.1.0(5y ago)233.8kPHPPHP &gt;=7.0

Since Feb 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/takman1/phalcon-session-redis)[ Packagist](https://packagist.org/packages/takman1/phalcon-session-redis)[ RSS](/packages/takman1-phalcon-session-redis/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

Redis Adapter for Phalcon/PHP session
=====================================

[](#redis-adapter-for-phalconphp-session)

There's a deprecation warning when using php-redis extension with Phalcon.

The deprecation come from using setTimeout method instead of expire, in Phalcon Redis backend adapter class.

Deprecation conditions
----------------------

[](#deprecation-conditions)

- PHP &gt;= 7
- PHP Redis &gt;= 5
- 4 &gt; Phalcon &gt;= 3

Solution
--------

[](#solution)

The solution is to extend Base \\Redis class and override setTimeout method. To do this we extend all Redis adapters chain nad make setTimeout call expire method.

Deprecated methods
------------------

[](#deprecated-methods)

- `\Redis::setTimeout()`

Usage
-----

[](#usage)

```
use Takman1\Phalcon\Session\Adapter\Redis;

$session = new Redis(
    [
        "uniqueId"   => "my-private-app",
        "host"       => "localhost",
        "port"       => 6379,
        "auth"       => "foobared",
        "persistent" => false,
        "lifetime"   => 3600,
        "prefix"     => "my",
        "index"      => 1,
    ]
);

$session->start();

$session->set("var", "some-value");

echo $session->get("var");
```

###  Health Score

28

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1855d ago

PHP version history (2 changes)1.0.0PHP 7.\*

1.1.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f58bb1b61df480cbe1da7cec2ea3754b986d92dddab2a1b1b66e0edd7070cc41?d=identicon)[takman1](/maintainers/takman1)

---

Top Contributors

[![takman1](https://avatars.githubusercontent.com/u/6367675?v=4)](https://github.com/takman1 "takman1 (8 commits)")

---

Tags

phpredissessionphalconphp-redis

### Embed Badge

![Health badge](/badges/takman1-phalcon-session-redis/health.svg)

```
[![Health](https://phpackages.com/badges/takman1-phalcon-session-redis/health.svg)](https://phpackages.com/packages/takman1-phalcon-session-redis)
```

###  Alternatives

[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

981161.4k2](/packages/awssat-laravel-visits)[craftsys/laravel-redis-session-enhanced

Enhanced redis driver for sessions in Laravel

106.2k](/packages/craftsys-laravel-redis-session-enhanced)[swoft/redis

swoft redis component

12167.7k15](/packages/swoft-redis)[eftec/cacheone

A Cache library with minimum dependency

103.5k](/packages/eftec-cacheone)

PHPackages © 2026

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