mirror of
https://github.com/redis/go-redis.git
synced 2026-10-24 07:59:20 +03:00
* chore(deps): bump golang.org/x/sys from 0.48.0 to 0.49.0 Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.48.0 to 0.49.0. - [Commits](https://github.com/golang/sys/compare/v0.48.0...v0.49.0) --- updated-dependencies: - dependency-name: golang.org/x/sys dependency-version: 0.49.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * chore(deps): go mod tidy submodules for x/sys 0.49.0 Example and extra modules still pinned x/sys v0.48.0, so govulncheck failed with "go mod tidy" in each of them. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nedyalko Dyakov <nedyalko.dyakov@gmail.com>
FT.ALIASLIST example
This example demonstrates FTAliasList, the client binding for
FT.ALIASLIST (Redis 8.10+): given an index name, it returns all aliases
currently associated with that index.
Key points shown by the example:
- An index with no aliases yields an empty result, not an error.
- The reply is an unordered, deduplicated collection of alias names; do not rely on its order.
- The argument must be an index created with
FT.CREATE. Passing an alias is not resolved and fails with the server'sSEARCH_INDEX_NOT_FOUNDerror — the same error a missing index produces.
Prerequisites
Redis 8.10+ with the Query Engine (search) module, listening on
localhost:6379.
Run
go run .
Expected output (alias order may differ):
aliases right after FT.CREATE: 0
aliases after FT.ALIASADD: [cities cities-latest]
FT.ALIASLIST with an alias as argument: SEARCH_INDEX_NOT_FOUND Index not found: cities