文件名称:php-redisearch:用于RediSearchPHP客户端
文件大小:138KB
文件格式:ZIP
更新时间:2024-03-09 21:44:51
redisearch redisearch-php PHP
PHP RediSearch 是一个PHP客户 。 已实现的API适用于RediSearch 2.0 安装 composer require macfja/redisearch 用法 创建一个新索引 $ client = new \ Predis \ Client ( /* ... */ ); $ builder = new \ MacFJA \ RediSearch \ Index \ Builder ( $ client ); // Field can be create in advance $ address = new \ MacFJA \ RediSearch \ Index \ Builder \ GeoField ( 'address' ); $ builder -> withName ( 'person' ) -> addField ( $ addre