Code Monkey home page Code Monkey logo

Comments (5)

marc-mabe avatar marc-mabe commented on June 3, 2024

@Morning Does this issue still persist? I tried to reproduce this issue but I couldn't.

from zend-cache.

Moring avatar Moring commented on June 3, 2024

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.

marc-mabe avatar marc-mabe commented on June 3, 2024

@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.

Moring avatar Moring commented on June 3, 2024

@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.

marc-mabe avatar marc-mabe commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.