How can I determine when an InnoDB table was last changed?

I've had success in the past storing the (heavily) processed results of a database query in memcached, using the last update time of the underlying tables(s) as part of the cache key. For MyISAM...

A persistent FIFO queue implementation on PHP

I need a FIFO queue implementation on PHP. I know that it's not so difficult but the problem is that, this queue must be stored on somewhere else such as memcache. I'll process this queue by cron...

Error with pylibmc on Mac OS Lion

I have a problem with pylibmc on Mac OS Lion. libmemcached — 1.0.4 pylibmc — 1.2.3 $ python Python 2.7.1 (r271:86832, Jun 25 2011, 05:09:01) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM...

Homebrew Symlink Error

I am trying to install memcached using: brew install memcached This ends in error about homebrew not being able to create a symlink: The linking step did not complete successfully The formula...

How are concurrent updates handled in Memcached?

My understanding is that Memcached is lockless (in its default configuration), such that no client can impede any other client's operation. If that is the case, then how does Memcached handle two...

Accessing a variable of one method in another in ruby on rails

I am facing an issue with accessing a particular variable of a method say A , in another method say B in the controller.. The size of the object(variable) is too big since it contains the results...

Add n tasks to celery queue and wait for the results

I'd add several jobs to the celery queue and wait for the results. I have many ideas about how I would accomplish this using some type of shared storage (memcached, redis, database, etc.), but I...

Memcache: /usr/sbin/httpd: symbol lookup error: /usr/lib64/php/modules/memcached.so: undefined symbol: memcached_last_error_errno

I'm getting the above error as soon as I enable Memcache at my Drupal application. Memcache is within the same environment as Apache PHP version 5.5.0 "extension=memcached.so" added to...

php-fpm child process exited on signal 11

Our application runs in a Docker container on AWS: Operating system: Ubuntu 14.04.2 LTS (Trusty Tahr) Nginx version: nginx/1.4.6 (Ubuntu) Memcached version: memcached 1.4.14 PHP version: PHP...

Redis for both data store (jobs) and fragment cache in Rails

I am already using Redis (with Redis Cloud on Heroku) as a data store for Resque to process my background jobs. I would like to add some fragment caching to my app. Questions: Do we need two...

Configure Memcached in Laravel

I've tried to set up memcached with my Laravel Set Driver /config/app.php 'default' => 'memcached', Configure Memcache Server 'stores' => [ 'database' => [ 'driver' =>...

Laravel 5.2: withErrors on redirect not working

I'm currently struggling with a Laravel problem I can't fix myself. If I pass errors using withErrors() the errors are not passed to the Error Bag ($errors). My Controller (FormController): public...

SQLSTATE[01002] Adaptive Server connection failed (severity 9)

I have the following script to connect to my microsoft azure server. <?php try { $hostname = "secrets.database.windows.net"; $dbname = "secrets"; $username = "secrets"; $pw =...

homebrew - how to install older versions

I'm trying to install memcached with older versions (ex: 1.4.5) but I'm not sure how to do it. brew install memcached installs the latest. I also tried brew install memecached1.4.5 but it didn't work.

Default Sidekiq Redis configuration in Rails app

I'm trying to understand the Redis & Sidekiq configuration in a Passenger+Rails app and have run into some lack of understanding. I start the redis server independently of my rails app, while...

Why and when should we use JSON Web Tokens?

I think that jwt.io do not explain very well why or when to use jwt. It explain other things that could be ok to consider but not critical to decide whether or not to use it or why it will be...

Does django hits the database when you request for an object's attribute from a cached query?

I'm having trouble to understand how to properly use the Caches Framework. lets say I have this code: class Book(models.Model): title = models.CharField() author =...

Evcache vs redis

I have read that netflix uses evcache , which is a wrapper over memcache and evcache proves better than memcache In general it is said that redis server as a better cache than memcache, was trying...

Error relocating - symbol not found - building docker-fpm-alpine image

Trying to create an image (from a working one) I got this error, been googling the solution but couldn't find a proper one, I asume something's wrong with libraries. Don't fully understand what...

is there a Cacheable in C# similar to Java?

In Java Spring Boot, I can easily enable caching using the annotation @EnableCaching and make methods cache the result using @Cacheable, this way, any input to my method with the exact same...

CodeIgniter 4... documentRoot is not in public... htaccess is not working

I am starting to dabble in CodeIgniter 4. Completed a simple app. On local, I have the documentroot setup to be /public/ where as on the product hosting environment, I am unable to set the...

Install Memcached on Windows

While doing some web development, I needed to have Memcached (source code) installed on my local machine to closely simulate what was going on my server. How to install Memcached on Windows?

docker ps list only Names and Status

I want to get status of docker containers with only names and status. I tried below but showing only status sudo docker ps --format '{{.Names}}' --format '{{.Status}}' Up 10 days...

Cant connect my Laravel project with a local MAMP server : SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from `users`)

I've been trying for hours to establish a database connection between my Laravel project and a local MAMP server. The migration works when i run the command from the terminal on my mac. When i run...

fatal error: libmemcached/memcached.h: no such file or directory

I try to setup a development environment for developing on django itself. Docs: Contributing / Running the test suite for the first time python -m pip install -r requirements/py3.txt It...

Laravel Sail + Dusk + Selenium: Connection refused

I have a Laravel with Sail and I want to make automated test with Laravel Dusk. I followed all the instructions in Dusk Documentation and Sail + Dusk Installation, but when I run the default test...

Just installed Laravel Sail. How to connect to database?

I am trying to connect and create schema using TablePlus (or PhpStorm) in my database since May of 6. Please understand me what I should to do? I will discribe what did I do step by step. $...

Laravel Sail Failed to Build

I'm struggling to get Laravel Sail working. Following the instructions from the documentation I'm not really understanding why the container is failing to build. I don't have any docker...

Review needed to correct this ElastiCache CloudFormation Template

This template is used to create a ElastiCache- Redis cluster. Its showing me errors like - 1 validation error detected: Value '[AWS::ElastiCache::CacheCluster, AWS::EC2::SecurityGroup::Id]' at...

Unable to run vscode's debugger with dockerized django project

Every time when I run a debugger there happen many things but not what I expect. I'm running a project with docker-compose up Checking the localhost if backend backend is okay. It's down. What's...