Questions tagged [memcached]

Memcached is a simple distributed object cache that caches information in memory, and can be used to improve the performance of dynamic web applications by reducing access time and database load.

Memcached is open source easily deployable in-memory distributed cache, cross application and cross Platform Engine meaning the same server(s) can be accessed from a variety of languages - PHP, Java, and .NET and from Windows, Linux, etc. Memcached is currently distributed under a BSD-style open source license.

5184 questions
2
votes
1 answer

How to compile memcached from github sources?

GitHub has no configure file. Only configure.am. No idea, how to handle it.
bm13kk
  • 167
  • 9
2
votes
2 answers

using microsoft velocity / memcache from classic asp

How to read data from cache saved in microsoft velocity from classic asp? If above is not possible, then what if I use memcache instead? Then is it possible and worth it to read memcache from classic asp?
Raj
  • 6,810
  • 6
  • 48
  • 56
2
votes
0 answers

Which in-memory key-value store I should choose for storing big data objects?

I want to write an application that stores and retrieves big data objects (in several gigabytes). As the objects are read and written sequentially, I wish every data object is stored in the following way. Only the first several tens of megabytes is…
2
votes
1 answer

How to use memcached in django project?

I am working on django-project ,I want to reduce database request overhead. So I am trying with django-cache (Requires Memcached) vi /etc/sysconfig/memcached PORT="11211" USER="memcached" MAXCONN="1024" CACHESIZE="64" We increased memory size up…
Prafull kadam
  • 208
  • 1
  • 6
2
votes
1 answer

max age with nginx/passenger/memcached/rails2.3.5

I notice that in my production enviornment (where I have memcached implemented) in see a cache-control - max-age header in firebug, anytime I am looking at an index page (posts for example). Cache-Control max-age=315360000 In my dev environment…
badnaam
  • 1,876
  • 4
  • 29
  • 53
2
votes
1 answer

Laravel app behind AWS ELB not working as expected

I've been stuck for two days now and here is my problem: I'm looking at a weird behaviour of a laravel app that I didn't develop but I have the responsibility to figure out what's happening. I set up a laravel app behind AWS ELB with session…
2
votes
3 answers

Can a Memcached daemon ever free() unused memory, without terminating the process?

I believe that you can't force a running Memcached instance to de-allocate memory, short of terminating that Memcached instance (and freeing all of the memory it held). Does anyone know of a definitive piece of documentation, or even a mailing list…
Ryan B. Lynch
  • 2,307
  • 3
  • 21
  • 21
2
votes
1 answer

pagination and memcached in rails

What's the best way to cache a paginated result set with rails and memcached? For example, posts controller: def index @posts = Rails.cache.fetch('all_posts') do Post.paginate(:conditions => ['xx = ?', yy], :include => [:author], :page =>…
badnaam
  • 1,876
  • 4
  • 29
  • 53
2
votes
2 answers

How can I force Rails (2.3.x) MemCacheStore to read a value from the server?

Long story short: I have some controller logic that requests a value from the cache X times, expecting to get a different value on subsequent requests if it has in fact changed on the cache server in between cache requests (this is all within the…
Teflon Ted
  • 8,696
  • 19
  • 64
  • 78
2
votes
1 answer

Gem Install memcached-northscale error

Trying to install memcached-northscale and getting a weird error. Any help would be appreciated. $ sudo gem install memcached-northscale Building native extensions. This could take a while... ERROR: Error installing memcached-northscale: ERROR:…
Splashlin
  • 7,225
  • 12
  • 46
  • 50
2
votes
2 answers

How do you cache a hash in Rails?

I am using Rails 4.2.1 and memcached. I can't seem to cache a hash. How do I cache a hash? irb(main):039:0* irb(main):040:0* Rails.cache.fetch("development_test") do irb(main):041:1* 'hi' irb(main):042:1> end Cache read: development_test Cache…
brojsimpson
  • 135
  • 3
  • 9
2
votes
2 answers

Django - alert when memcached is down

Is there some ready-made addon that alerts admins about memcached instance being inaccessible from a Django application? I don't mean here monitoring memcached daemon itself, but something that checks if my Django app benefits from caching. My basic…
Tomasz Zieliński
  • 16,136
  • 7
  • 59
  • 83
2
votes
0 answers

Best way to store massive number of sessions in Codeigniter

We have recently built a website for a client who is now seeing a ton of traffic, specifically they have sources where when they promote the site we see around 400-600k records stored in our database under "sessions" The sessions table in database…
Hossj
  • 318
  • 2
  • 11
2
votes
1 answer

How to use memcached and apc together in laravel?

I want to use both memcached and apc at the same time for caching, how can I configure and use it in laravel.
Ali Maisam
  • 239
  • 1
  • 3
  • 15
2
votes
1 answer

How to configure an entity as part of the second-level cache in DoctrineORMModule?

I was trying to configure memcached in DoctrineORM module of my Zendframework 2 project to perform caching queries, results and metadata follow this tutorial https://github.com/doctrine/DoctrineORMModule/blob/master/docs/cache.md In…