openeuler/memcached

Sponsored OSS

By openeuler

Updated 8 days ago

Image

478

Quick reference

Memcached | openEuler

Current Memcached docker images are built on the openEuler. This repository is free to use and exempted from per-user rate limits.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering. Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.

Learn more about Memcached on the [https://memcached.org/).

Supported tags and respective Dockerfile links

The tag of each memcached docker image is consist of the version of memcached and the version of basic image. The details are as follows

TagCurrentlyArchitectures
1.6.12-oe2203ltsMemcached 1.6.12 on openEuler 22.03-LTSamd64, arm64
1.6.24-oe2203sp3Memcached 1.6.24 on openEuler 22.03-LTS-SP3amd64, arm64

Usage

In this usage, users can select the corresponding {Tag} and container startup options based on their requirements.

  • Pull the openeuler/memcached image from docker

    docker pull openeuler/memcached:{Tag}
    
  • Start a memcached instance

    docker run -d --name my-memcached -p 11211:11211 openeuler/memcached:{Tag}
    

    After the instance my-memcached is started, access the Memcached service through http://localhost:11211.

  • Container startup options

    OptionDescription
    -p 11211:11211Expose Memcached server on localhost:11211.
    -e MEMCACHED_CACHE_SIZE=64MBDetermines the size of the cache.
    -e MEMCACHED_MAX_CONNECTIONS=1024Determines the maximum number of concurrent connections.
    -e MEMCACHED_THREADS=4Determines the number of threads to process requests.
    -e MEMCACHED_PASSWORDDefine the password for the root user if another username is provided. By default the authentication is disabled but if this option is passed it becomes enabled.
    -e MEMCACHED_USERNAMEDefine a new user. If this option is passed a password is needed to authenticate the new user.
  • View container running logs

    docker logs -f my-memcached
    
  • To get an interactive shell

    docker exec -it my-memcached /bin/bash
    

Question and answering

If you have any questions or want to use some special features, please submit an issue or a pull request on openeuler-docker-images.

Docker Pull Command

docker pull openeuler/memcached