NCache is an extremely fast and scalable In-memory distributed cache for .NET. It lets you remove bottlenecks related to the database and linearly scales your applications. You can download a Windows Installer (.msi) and install it on Windows. Or you can simplify your installation by deploying NCache in a Docker container.
The easiest and quickest way to start using NCache is to fetch a pre-built NCache Docker Image from Docker Hub. These Docker images come preinstalled with NCache. Simply use the "docker pull" command to install them in your environment.
NCache Enterprise is available as a Docker Image on Ubuntu based Linux. For other flavors of Linux, please use the Docker File provided by Alachisoft and modify it for your preferred flavor or Linux.
In most situations, the pre-built NCache images on Docker Hub are all you need for quick deployment. But, in some cases, you may want to create a custom Docker Image that includes your own software or other variations of even standard OS software.
One example of this is the flavor of Linux. NCache Docker Image on Docker Hub uses Debian Linux but you may want another flavor of Linux for your NCache servers; NCache works fine on multiple flavors of Linux. Or, you may want to create a custom Docker Image for your application server (NCache Client) that contains not only your own application but also the NCache client software.
In all such cases, Alachisoft provides you with various Dockerfiles that you can edit and customize to fit your needs.
Examples of these Dockerfiles that you can edit to create a custom Docker Image are as follows.
A typical Dockerfile Enterprise Server looks like.
# Setting base image for NCache.
FROM ubuntu:22.04
# Setting work directory to copy setups and resources for configuring NCache.
WORKDIR /app
# Make sure your machine has access to internet for installation of packages
# Make sure that the folder ("resources") exist in the same directory as the Dockerfile.
# Make sure that "ipbinding.sh" script resides in the "resources" folder.
# Make sure that "installncache.sh" script resides in the "resources" folder.
# Make sure that NCache Linux setup (.tar.gz) resides in the "resources" folder. It can be downloaded from https://www.alachisoft.com/download-ncache.html.
# Copying resources and setups into the work directory of the container.
COPY resources .
# Exposing ports used by NCache for communication.
EXPOSE 8250-8260 9800 7800-7900 8300-8400 9900 10000-10100
# Installing prerequisite ...
RUN apt-get update && apt-get install -y \
procps \
ed \
apt-transport-https \
curl \
libicu-dev \
&& rm -rf /var/lib/apt/lists/*
# Installing NCache Linux setup (.tar.gz).
# The parameter "--firstname" represents the first name of the user.
# The parameter "--lastname" represents the last name of the user.
# The parameter "--company" Provide your company name.
# The parameter "--email" Provide your email address.
# The parameter "--installkey" Installation key provided by alachisoft.com.
RUN chmod -R 775 /app \
&& ./installncache.sh --firstname "YOUR_FIRST_NAME" --lastname "YOUR_LAST_NAME" --company "YOUR_COMPANY" --email "YOUR_EMAIL" --installkey "******" --installmode "server" \
&& rm -rf /var/lib/apt/lists/*
# Switching the current user to ncache user
USER ncache
# Entry point for the container, once all the required configurations have been made.
ENTRYPOINT ["/app/startup.sh"]
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.