定制 teamneusta/elasticcache 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

teamneusta/elasticcache

最新稳定版本:8.1.0

Composer 安装命令:

composer require teamneusta/elasticcache

包简介

elastic cache backend

README 文档

README

Provides a cache backend for TYPO3 which enables storing caches in elasticsearch.

Prerequisites

Installation

composer require teamneusta/elasticcache

Configuration

Add a section to your local configuration configuring the cache. You can either reconfigure existing caches or add a new one for your own use. For more general information see the caching framework documentation (at https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/CachingFramework/Index.html#caching)

The following options can be set:

  • host: The elasticsearch host name (defaults to localhost)
  • port: The elasticsearch port (defaults to 9200)
  • path: The elasticsearch path (defaults to /)
  • transport: The elasticsearch transport protocol (defaults to http)
  • indexName: The index name to use for this cache - make sure to choose a different one per cache
  • typeName: The type name to use for this index
  • indexConfiguration: The path to index configuration where you can set alternating mappings and analyzers
  • defaultLifeTime: The default lifetime of a cache entry in this cache (in seconds - 0 means unlimited)

Example

'SYS' => [
	 'caching' => [
		 'cacheConfigurations' => [
			 'my_cache' => [
				 'backend' => 'TeamNeusta\\Elasticcache\\Cache\\Backend\\ElasticsearchBackend',
				 'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend',
				 'options' => [
					 'defaultLifetime' => 0,
					 'indexName' => 'my_cache_index_name'
					 'typeName' => 'my_cache_type_name'
					 'indexConfiguration' => 'EXT:myext/Configuration/Elastic/indexConfiguration.yaml'
				 ],
			 ],
		 ],
	 ],

Issues and Feedback

If you run into any issues, want to contribute or just give feedback, just use the github issue tracker.

Known issues

With TYPO3 10.0 the StringFrontend has been removed after being deprecated in TYPO3 9.2.
It is recommended to use the VariableFrontend instead. However, the VariableFrontend serializes the cache input per default unless the corresponding cache backend implements the TransientBackendInterface. To this extend the elasticcache-extension changes to the use of the TransientBackendInterface with v2.0 to allow insertion of valid json for cross-platform usage.

统计信息

  • 总下载量: 11.58k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 9
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2017-05-07