<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.pchero21.com/index.php?action=history&amp;feed=atom&amp;title=Redis-py</id>
	<title>Redis-py - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.pchero21.com/index.php?action=history&amp;feed=atom&amp;title=Redis-py"/>
	<link rel="alternate" type="text/html" href="http://wiki.pchero21.com/index.php?title=Redis-py&amp;action=history"/>
	<updated>2026-04-25T18:06:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>http://wiki.pchero21.com/index.php?title=Redis-py&amp;diff=981&amp;oldid=prev</id>
		<title>Pchero: /* scan */</title>
		<link rel="alternate" type="text/html" href="http://wiki.pchero21.com/index.php?title=Redis-py&amp;diff=981&amp;oldid=prev"/>
		<updated>2016-06-17T09:03:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;scan&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:03, 17 June 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     * Added the SCAN, SSCAN, HSCAN, and ZSCAN commands. Thanks Jingchao Hu.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     * Added the SCAN, SSCAN, HSCAN, and ZSCAN commands. Thanks Jingchao Hu.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;redis-py-2.10.0 버전 이후부터는 scan_iter() 와 같은 편리한 메소드들을 지원한다.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=python&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=python&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import redis&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import redis&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pchero</name></author>
	</entry>
	<entry>
		<id>http://wiki.pchero21.com/index.php?title=Redis-py&amp;diff=980&amp;oldid=prev</id>
		<title>Pchero: Created page with &quot;== Overview == Python-redis, Redis-py 내용 정리  == Versions == 패키지 설치시, python-redis 라는 이름으로 검색/설치가 가능하다. 대부분(거의 모...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.pchero21.com/index.php?title=Redis-py&amp;diff=980&amp;oldid=prev"/>
		<updated>2016-06-17T08:29:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Overview == Python-redis, Redis-py 내용 정리  == Versions == 패키지 설치시, python-redis 라는 이름으로 검색/설치가 가능하다. 대부분(거의 모...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
Python-redis, Redis-py 내용 정리&lt;br /&gt;
&lt;br /&gt;
== Versions ==&lt;br /&gt;
패키지 설치시, python-redis 라는 이름으로 검색/설치가 가능하다. 대부분(거의 모든) 2.4.x 버전 이후의 python-redis 패키지들이 python-2.7 버전 이상을 요구한다. 하지만 실제로는 python-2.6 이상에서도 동작한다. 패키지가 python-2.7 버전 이상을 요구하는 이유는, 해당 배포 리눅스에서 제공하는 기본 python 버전이 2.7 이상이기 때문이다. 공식 소스 배포 사이트에서는 2.5, 2.6 버전들의 지원을 명시하고 있다(하지만 redis-py 2.10.0 부터 python-2.5 지원하지 않는다).&lt;br /&gt;
* http://rpms.remirepo.net/rpmphp/zoom.php?rpm=python-redis - fedora python-redis packages&lt;br /&gt;
&lt;br /&gt;
== scan ==&lt;br /&gt;
redis-2.8 버전부터 지원하기 시작한 SCAN 명령을 redis-py에서 사용하기 위해서는 redis-py-2.9.0 이상의 버전이 필요하다.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
* 2.9.0&lt;br /&gt;
    ...&lt;br /&gt;
    * Added the SCAN, SSCAN, HSCAN, and ZSCAN commands. Thanks Jingchao Hu.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;source lang=python&amp;gt;&lt;br /&gt;
import redis&lt;br /&gt;
&lt;br /&gt;
def scan_sample(match):&lt;br /&gt;
    ret = []&lt;br /&gt;
    for key in r.scan_iter(match=match):&lt;br /&gt;
        print(&amp;quot;Value. key[%s]&amp;quot; % (key))&lt;br /&gt;
        ret.append(key)&lt;br /&gt;
    return ret&lt;br /&gt;
&lt;br /&gt;
r = redis.Redis(db=0)&lt;br /&gt;
&lt;br /&gt;
ret = scan_sample(&amp;quot;*&amp;quot;)&lt;br /&gt;
print ret&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* https://github.com/andymccurdy/redis-py/blob/master/CHANGES - redis-py 변경이력&lt;br /&gt;
&lt;br /&gt;
[[category:python]]&lt;/div&gt;</summary>
		<author><name>Pchero</name></author>
	</entry>
</feed>