Softwr

Databases · head to head

Memcached vs vLLM

M

Memcached

Databases

Distributed memory object caching system

From
Free
Free plan
Yes
vLLM logo

vLLM

Machine Learning

Open-source inference and serving engine for large language models with PagedAttention

From
Free
Free plan
Yes

The short version

  • vLLM is an open-source LLM inference and serving engine.
  • Both are free.
  • Only Memcached lists client-side sharding; only vLLM lists continuous batching.
  • Where Memcached falls short: no persistence at all: restart a node and its cache is gone, which every design must assume.
  • Where vLLM falls short: self-hosted only, so you run GPUs, scaling and monitoring.

How do Memcached and vLLM differ?

Memcached and vLLM differ on pricing model, platforms and category (Databases against Machine Learning). Only the attributes on which Memcached and vLLM actually diverge.

Attributes where Memcached and vLLM differ
AttributeMemcachedvLLM
Pricing modelOpen source, no licence fee; managed cloud billed separatelyOpen-source
PlatformsLinux, macOS, Windows, Self-hostedWeb
CategoryDatabasesMachine Learning

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for vLLM.

Which features does each one have?

They share no listed features; 4 appear only for Memcached and 9 only for vLLM. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Memcached

  • In-memory key-value cache
  • Multithreaded
  • Client-side sharding
  • Predictable memory use

Only in vLLM

  • PagedAttention memory management
  • Continuous batching
  • OpenAI-compatible API server
  • Quantisation including FP8, AWQ and GPTQ
  • Speculative decoding
  • Tensor and pipeline parallelism
  • Multi-LoRA serving
  • Structured outputs and tool calling

What is each one used for?

Memcached is most often brought in for caching expensive database query results to cut load; vLLM for serving open-weight models behind an OpenAI-style API. The jobs each tool is most often brought in to do.

Memcached

  • Caching expensive database query results to cut loadnot vLLM
  • Session storage where losing sessions on restart is acceptablenot vLLM
  • Fronting an API whose responses are costly and change slowlynot vLLM

vLLM

  • Serving open-weight models behind an OpenAI-style APInot Memcached
  • High-throughput batch inferencenot Memcached
  • Multi-GPU model servingnot Memcached
  • Running models with quantisation to cut GPU costnot Memcached

Where do Memcached and vLLM fall short?

Memcached's most cited limit: no persistence at all: restart a node and its cache is gone, which every design must assume. vLLM's: self-hosted only, so you run GPUs, scaling and monitoring. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Memcached

  • No persistence at all: restart a node and its cache is gone, which every design must assume
  • No replication or failover, so losing a node loses that share of the cache
  • Only simple key-value, with none of the lists, sorted sets or streams Redis offers
  • Values are capped at 1MB by default, which surprises teams caching large documents

vLLM

  • Self-hosted only, so you run GPUs, scaling and monitoring
  • Fast-moving project with frequent changes between versions
  • Hardware support differs between GPU, CPU and plugin backends
  • No managed hosting or commercial support plan from the project

How much do Memcached and vLLM cost?

Memcached is free to use; vLLM is free to use. Plan by plan below, from each vendor's own pricing page.

Memcached

Free
  • MemcachedFree
    • Full functionality
    • Self-hosted
    • No usage limits

vLLM

Free

No published plan breakdown. See the vLLM review.

Which should you pick?

Choose Memcached if

  • You need in-memory key-value cache.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Self-hosted.
  • You also want multithreaded.

Choose vLLM if

  • You need pagedattention memory management.
  • You want to start without paying.
  • You also want continuous batching.

Questions people ask

Is Memcached or vLLM better?
It depends on the job. Memcached fits caching expensive database query results to cut load; vLLM fits serving open-weight models behind an OpenAI-style API. Memcached starts at Free and vLLM at Free.
Which is cheaper, Memcached or vLLM?
Memcached starts at Free and vLLM at Free.
Does Memcached or vLLM run on more platforms?
Memcached runs on Linux, macOS, Windows, Self-hosted. vLLM runs on Web.
Can I use Memcached for free?
Both have a free tier, so you can try either at no cost before committing.
What is Memcached best used for?
Memcached is most often used for caching expensive database query results to cut load, session storage where losing sessions on restart is acceptable, fronting an api whose responses are costly and change slowly. Of those, caching expensive database query results to cut load and session storage where losing sessions on restart is acceptable are not what vLLM is typically brought in for.
What can Memcached do that vLLM cannot?
Memcached covers In-memory key-value cache, Multithreaded, Client-side sharding, Predictable memory use. vLLM covers PagedAttention memory management, Continuous batching, OpenAI-compatible API server, Quantisation including FP8, AWQ and GPTQ.

Answered from the vendors’ own pages

Memcached: Is Memcached free?

Yes, open source with no licence fee.

vLLM: Where did vLLM come from?

vLLM was originally developed in the Sky Computing Lab at UC Berkeley and is now maintained by a community of contributors.

Source
Memcached: Memcached or Redis?

Memcached is a pure cache: simpler, multithreaded and very predictable. Redis adds persistence, replication and rich data structures, which is why it is the default choice unless you specifically want a cache and nothing more.

vLLM: Does vLLM offer an OpenAI-compatible API?

Yes, it includes an OpenAI-compatible API server and also supports the Anthropic Messages API and gRPC.

Source
Memcached: Does Memcached persist data?

No. Everything is in memory and lost on restart, by design.

vLLM: What hardware does vLLM run on?

NVIDIA, AMD and Intel GPUs and x86, ARM and PowerPC CPUs, with plugins for hardware such as Google TPUs and Intel Gaudi.

Source
Share

Related pages

Other head to heads