Comments (13)
I guess not.
from phalcon.
You can always do PR, feel free to do it.
from phalcon.
π
from phalcon.
Any progress?
from phalcon.
+1
from phalcon.
+1
from phalcon.
+1
from phalcon.
It this feature already in some roadmap?
from phalcon.
I don't want to sound rude, but technically, it's a blocker and still unresolved. If you want to use Phalcon with Redis for bigger project, you must to use Redis Cluster (because failover, HA, etc.).
from phalcon.
This is definitely not a long term solution, but if you have PHPRedis configured to handle sessions with RedisCluster then you can cheat a little by leveraging the abstract class Phalcon\Session\Adapter
since it uses the superglobal $_SESSION
. I was able to create a class that extends it and let PHPRedis automatically handle session handling. For example, I created:
<?php
class RedisClusterSession extends Phalcon\Session\Adapter
{
}
Then in index.php
:
// Setup the session component
$di->setShared('session', function () {
$session = new RedisClusterSession();
$session->start();
return $session;
});
from phalcon.
Closing in favor of phalcon/cphalcon#13855. Will revisit if the community votes for it, or in later versions.
from phalcon.
I'm considering contributing to this issue. Got off track by missing RedisCluster adapter about... 7 years ago? It's crazy its not yet implemented. Is there a reason you are not implementing this? We don't have volounteers or there is a hidden issue in here?
from phalcon.
@yergo Lack of knowledge and volunteers. To get this going I will need to study on how the cluster works and then write the implementation.
If you are interested in making an adapter for this, you can try it in the https://phalcon/phalcon repository first with a PHP implementation. Then it would be easy to port it to cphalcon. The Storage classes work just fine for phalcon/phalcon
from phalcon.
Related Issues (20)
- Can't access page, 404 FORBIDDEN HOT 1
- Can I use `$this->getRelated` on already cached data?
- [BUG]: Scrutinizer Fixes HOT 1
- [NFR]: ADD sticky for read write connection
- [NFR]: removeBehavior method in Model
- [NFR]:returnedValue not updated after dispatcher->forward
- [NFR]: No way to add html attributes to Select Tag. documentation inadequate HOT 1
- [BUG]: The "setDefault" method does not work for forms of type "text" with name "value" HOT 5
- update src folder links
- How to use cookie in phalcon 4.x ? HOT 1
- update tests folder links
- [NFR]: Complete rework of ORM HOT 3
- [BUG]: \Phalcon\Encryption\Crypt + named parameters/arguments throw fatal error. HOT 1
- [NFR]: Refactor Phalcon\Mvc\Router/Route HOT 1
- [NFR]: Refactor Phalcon\Mvc\Model\MetaData
- phalcon 3,4 webhook problem HOT 2
- [NFR]: What is the purpose of this libraryοΌ HOT 3
- [NFR]: Add a getResult() or fetchAll() method to Resultset\Simple
- [BUG]: when i use JWT Builder , api returns blank HOT 1
- [NFR]: Refactor Phalco\Mvc\View
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phalcon.