{"id":19621624,"url":"https://github.com/pkg6/think-redis","last_synced_at":"2025-12-13T02:50:22.027Z","repository":{"id":152976097,"uuid":"586234897","full_name":"pkg6/think-redis","owner":"pkg6","description":"An easy way to use the official PHP predis client in your thinkphp applications.","archived":false,"fork":false,"pushed_at":"2023-01-07T12:34:27.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-09T11:40:59.644Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pkg6.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-07T12:25:44.000Z","updated_at":"2023-01-07T12:34:31.000Z","dependencies_parsed_at":"2023-07-07T10:46:09.721Z","dependency_job_id":null,"html_url":"https://github.com/pkg6/think-redis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fthink-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fthink-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fthink-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkg6%2Fthink-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkg6","download_url":"https://codeload.github.com/pkg6/think-redis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240917723,"owners_count":19878308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T11:23:45.706Z","updated_at":"2025-12-13T02:50:16.995Z","avatar_url":"https://github.com/pkg6.png","language":"PHP","readme":"## 安装\n\n```\ncomposer require tp5er/think-redis\n```\n\n## 基本配置\n\n```\nREDIS_HOST=127.0.0.1\nREDIS_PORT=6379\nREDIS_PASSWD=\n```\n\n## 常规使用\n\n\u003e ```\n\u003e $redis = new \\Predis\\Client($parameters = null, $options = null);\n\u003e $redis-\u003eset('test','test');\n\u003e ```\n\n您现在可以简单地替换最后两行：\n\n```\n$return = \\tp5er\\think\\redis\\Redis::set('test','test');\n```\n\n这将在默认连接上运行命令。 你可以运行一个命令 任何连接（参见 `defaultConnection` 设置和 `connections` 数组 配置文件）。\n\n```\n$return = \\tp5er\\think\\redis\\Redis::connection('connectionName')-\u003eset('test','test');\n```\n\n## Copyright and License\n\n\nCopyright (c) 2021 wangzhiqiang\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg6%2Fthink-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkg6%2Fthink-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkg6%2Fthink-redis/lists"}