Download the PHP package rah/rah_memcached without Composer

On this page you can find all versions of the php package rah/rah_memcached. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package rah_memcached

h1. rah_memcached

"Download":https://github.com/gocom/rah_memcached/releases | "Packagist":https://packagist.org/packages/rah/rah_memcached | "Issues":https://github.com/gocom/rah_memcached/issues

A plugin for "Textpattern CMS":https://textpattern.com that stores parts of your templates in "Memcached":https://memcached.org/, a distributed in-memory key-value caching system.

h2. Install

Using "Composer":https://getcomposer.org:

bc. $ composer require rah/rah_memcached

Or "download":https://github.com/gocom/rah_memcached/releases an installer package.

h2. Basics

The plugin, rah_memcached, introduces a new container tag to Textpattern's arsenal. The tag stores the wrapped content, and "variables":https://docs.textpattern.com/tags/variable set within it, in Memcached's in-memory storage.

bc.

<txp:article_custom limit="200">
    <txp:title />
</txp:article_custom>

</rah::memcached>

On subsequent calls the resulting output markup and variables will be loaded from memory, skipping template parsing and code execution, speeding up your site and alleviating database load.

h2. Requirements

h2. Configuration

Connected server can be configured through Textpattern's @textpattern/config.php@ file:

bc. define('RAH_MEMCACHED_HOST', 'localhost'); define('RAH_MEMCACHED_PORT', 11211);

h2. Attributes

bc. ...contained statement... </rah::memcached>

The tag is a container and attributes for it follow.

name Sets a name, a key, for the cached item. The given name is used identify the item, and save and fetch it from the storage. If a name is not defined, it's automatically created by hashing the given contained markup. While the name is optional, giving it is more efficient and avoids any potential hash collisions. Default: undefined Example: @name="mykey"@

expires Time in seconds it takes to the stored item to expire and be refreshed. If zero (@0@), the cache is kept in memory until the cache is flushed or Memcached is restarted. Default: @0@ Example: @expires="3600"@

persist If enabled, ignores content updates as set by site's @lastmod@ timestamp. By default, the cache is invalidated when Texptatern's lastmod timestamp is updated, which is done when any content is updated. Default: disabled Example: @persist@

h2. Examples

h3. Store section navigation in memory

bc.

h3. Store variables in memory bc.. Color: Size: h2. Changelog h3. Version 0.3.0 - 2022/04/22 * Fixes PHP >= 8.1 compatibility. * Now requires PHP >= 8.1. h3. Version 0.2.0 - 2022/04/17 * Register the tag for Textpattern >= 4.7.0 compatibility. * Replaced @lastmod@ attribute with @persist@. * Now requires PHP >= 7.2.0. * Now requires Textpattern >= 4.7.0. h3. Version 0.1.0 - 2014/03/19 * Initial release.

All versions of rah_memcached with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-memcached Version *
textpattern/lock Version >=4.7.0
textpattern/installer Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rah/rah_memcached contains the following files

Loading the files please wait ....