Git Product home page Git Product logo

extension-memcached's Introduction

extension-memcached's People

Contributors

andrew-dixon avatar michaeloffner avatar micstriit avatar zspitzer avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

extension-memcached's Issues

Session timeouts default to 10 min and not as per SessionTimeout settings

Hello,

We are using GitHub - lucee/extension-memcached extension for session. memcache server we using AWS server.
We having issue of session time out in 10 minutes and its not using the session timeout values set in application cfc.

I updated the latest snapshot and updated setting in application cfc as below

this.ApplicationTimeout=CreateTimeSpan(1,0,0,0);
this.SessionTimeout=CreateTimeSpan(0,1,0,0);
this.sessionStorage = “memcache”;
this.SessionManagement=true;
this.setClientCookies = true;
this.setDomainCookies = false;

this.cache.connections[“memcache”] = {
class: ‘org.lucee.extension.cache.mc.MemcachedCache’
, bundleName: ‘memcached.extension’
, bundleVersion: ‘4.0.0.7-SNAPSHOT’
, storage: true
, custom: {
“log”:"",
“default_expires”:“3600”,
“protocol”:“Binary”,
“compress”:“true”,
“failure_mode”:“Redistribute”,
“servers”:“xxxxxmemcached.xxxxxxxx.amazonaws.com:11211”
}
, default: ‘’
};

OS: centos-release-7-6.1810.2.el7.centos.x86_64
Java Version: 11.0.3 (AdoptOpenJDK) 64bit
Tomcat Version: Apache Tomcat/9.0.41
Lucee Version: Lucee 5.3.6.61

Any help or guidance will be great.

Thank you,

Memcached Always Uses Binary Format

When I dump cached data from Lucee, it appears as binary instead of JSON as I set it in my config. Here is the partial dumped data:

��sr/lucee.runtime.type.scope.storage.IKStorageValue%�vz^/�J lastModified[barrt[Bxp\��m�ur[B���T�xp ���sr8lucee.commons.collection.concurrent.ConcurrentHashMapProd����)= xr'lucee.commons.collection.AbstractMapPro�,�VעT� xpsrjava.util.HashMap����Fone,two,threesqt�timecreatedxsq\��masqE\��"xsqt MYNUMERICxsq~\��l�sq~(@s@sqtMYSTRUCTxsq\��l�srlucee.runtime.type.StructImpl�%!J�Lmapt!Llucee/commons/collection/MapPro;xr%lucee.runtime.type.util.StructSupportg)��9��xpsqsq?@sq~t�PRETEND_KEYxtreally crucial data`

In this code, it seems that the storageFormat is parsed and set, but not passed to the pool:

line 138 if("json".equalsIgnoreCase(str.trim())) storageFormat=STORAGE_FORMAT_JSON;

Please advise.

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.