Comments (5)
@Morning Does this issue still persist? I tried to reproduce this issue but I couldn't.
from zend-cache.
Can you please post up your test case/config? I will run it on the system with the issue, so I can get more detail.
Sent via mobile
-------- Original message --------
From: Marc Bennewitz [email protected]
Date: 10/26/16 3:45 PM (GMT-06:00)
To: zendframework/zend-cache [email protected]
Cc: David Moring [email protected], Mention [email protected]
Subject: Re: [zendframework/zend-cache] Redis Cache Adapter fails when using
socket (#103)
@Morning Does this issue still persist? I tried to reproduce this issue but I couldn't.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/zendframework/zend-cache","title":"zendframework/zend-cache","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/zendframework/zend-cache"}},"updates":{"snippets":[{"icon":"PERSON","message":"@marc-mabe in #103: @Morning Does this issue still persist? I tried to reproduce this issue but I couldn't."}],"action":{"name":"View Issue","url":"https://github.com/zendframework/zend-cache/issues/103#issuecomment-256471711"}}}
from zend-cache.
@Moring I have configured Redis locally with socket (and set port to 0). Then I configured the unit tests to use this socket and fixed the tests to be able to run with different config see #118.
phpunit.xml
<env name="TESTS_ZEND_CACHE_REDIS_ENABLED" value="true" />
<env name="TESTS_ZEND_CACHE_REDIS_HOST" value="/var/run/redis/redis.sock" />
<!-- <env name="TESTS_ZEND_CACHE_REDIS_PORT" value="6379" /> -->
<env name="TESTS_ZEND_CACHE_REDIS_PASSWORD" value="" />
<env name="TESTS_ZEND_CACHE_REDIS_DATABASE" value="false" />
Also I noticed a general issue with <env name="TESTS_ZEND_CACHE_*_ENABLED" value="true" />
as this will be casted to PHP boolean true
but the tests will check for string true
. So you either set this as cli variable or you need to disable this check in tests.
Thanks
from zend-cache.
@marc-mabe Yes!! Local socket does work under PHP: 7.0.12, Zend Cache 2.7.1. It is great to Redis back again, thank you. Did notice the documentation is a bit off, "lib_options" in the config, not "lib_option" for the serializer.
from zend-cache.
Closing this one as it seems to work fine.
@Moring I have opened a PR for fixing the doc
Thanks
from zend-cache.
Related Issues (20)
- Why make Zend\Cache\Storage\Adapter\Filesystem only support string data types? HOT 2
- Add PHP 7.2 support, drop HHVM HOT 1
- ZF2 Memcached PHP7 backward incompatible change HOT 2
- Invalid prototype (PHP 7.2) HOT 10
- StorageFactory Not Reading "cache_dir" Setting HOT 2
- memcached doesn't work with plugin phpSerialize HOT 2
- When 2.8 will be released? HOT 10
- PSR-16 support: serialization using plugin HOT 2
- PSR-16 support: clear by namespace when appropriate HOT 1
- PSR-16 support: prevent concurrent regression when calling delete HOT 3
- ZendCache 2.8 sets $success on getItem if there is a null response HOT 1
- PSR-16 and blackhole not possible HOT 6
- Missing docs about APCU storage HOT 1
- SimpleCacheDecorator and providesPerItemTtl leads undocumented behaviors HOT 4
- StorageInterface::hasItem issue with ext-redis 4.0.1+ HOT 1
- [ZF3] Remove StorageFactory and PatternFactory HOT 2
- Make it possible to decorate cache adapters with PSR6/PSR16 decorators through configuration HOT 1
- Typo in variable for ExtMongoDbResourceManager adapter makes passing db a no-op HOT 3
- SimpleCacheDecorator Cache gets deleted after creation
- Redis::delete is deprecated HOT 9
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 zend-cache.