Re: The most lightweight PHP client for Redis

148 views
Skip to first unread message

youssef aani

unread,
Jul 9, 2012, 1:21:25 PM7/9/12
to redi...@googlegroups.com
It's inspired from Redisent or not?

2012/7/9 Petr Trofimov <petro...@yandex.ru>
Hello there!

TinyRedisClient - the most lightweight Redis client written in PHP.
It can be useful for people who do not need extra features and appreciate simplicity and tiny size.


If you like it please add this client to the list.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/XdXglFfCo_oJ.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.



--
Aani Youssef
Web Security & Development Architect

Salvatore Sanfilippo

unread,
Jul 9, 2012, 2:19:56 PM7/9/12
to redi...@googlegroups.com
This client is certainly minimal, but it is not correct, because you
need to recurse on multi bulks.

Just split the call() into call() and parse() and write parse so that
it recurses on "*".

Cheers,
Salvatore

On Mon, Jul 9, 2012 at 5:57 PM, Petr Trofimov <petro...@yandex.ru> wrote:
> Hello there!
>
> TinyRedisClient - the most lightweight Redis client written in PHP.
> It can be useful for people who do not need extra features and appreciate
> simplicity and tiny size.
>
> https://github.com/ptrofimov/tinyredisclient
>
> If you like it please add this client to the list.
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/XdXglFfCo_oJ.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/redis-db?hl=en.



--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org

Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
— David Gelernter

Petr Trofimov

unread,
Jul 10, 2012, 8:03:06 AM7/10/12
to redi...@googlegroups.com
It is not inspired with Redisent, definitely. it is inspired only with Redis protocol specification. :)


On Monday, July 9, 2012 9:21:25 PM UTC+4, youssef aani wrote:
It's inspired from Redisent or not?

2012/7/9 Petr Trofimov <petro...@yandex.ru>
Hello there!

TinyRedisClient - the most lightweight Redis client written in PHP.
It can be useful for people who do not need extra features and appreciate simplicity and tiny size.


If you like it please add this client to the list.

Thank you.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To view this discussion on the web visit https://groups.google.com/d/msg/redis-db/-/XdXglFfCo_oJ.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+unsubscribe@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.

Petr Trofimov

unread,
Jul 10, 2012, 8:05:41 AM7/10/12
to redi...@googlegroups.com
You are saying lists can contain lists in themselves inside. 
Well, this is not being processed properly. It need to be fixed, thank you.


On Monday, July 9, 2012 10:19:56 PM UTC+4, Salvatore Sanfilippo wrote:
This client is certainly minimal, but it is not correct, because you
need to recurse on multi bulks.

Just split the call() into call() and parse() and write parse so that
it recurses on "*".

Cheers,
Salvatore

On Mon, Jul 9, 2012 at 5:57 PM, Petr Trofimov <petro...@yandex.ru> wrote:
> Hello there!
>
> TinyRedisClient - the most lightweight Redis client written in PHP.
> It can be useful for people who do not need extra features and appreciate
> simplicity and tiny size.
>
> https://github.com/ptrofimov/tinyredisclient
>
> If you like it please add this client to the list.
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/XdXglFfCo_oJ.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to

Petr Trofimov

unread,
Jul 10, 2012, 8:21:04 AM7/10/12
to redi...@googlegroups.com
According to protocol, multibulk responses contain multiple bulks in themselves inside. Bulks are binary strings in fact. Which Redis command returns nested lists?


On Monday, July 9, 2012 10:19:56 PM UTC+4, Salvatore Sanfilippo wrote:
This client is certainly minimal, but it is not correct, because you
need to recurse on multi bulks.

Just split the call() into call() and parse() and write parse so that
it recurses on "*".

Cheers,
Salvatore

On Mon, Jul 9, 2012 at 5:57 PM, Petr Trofimov <petro...@yandex.ru> wrote:
> Hello there!
>
> TinyRedisClient - the most lightweight Redis client written in PHP.
> It can be useful for people who do not need extra features and appreciate
> simplicity and tiny size.
>
> https://github.com/ptrofimov/tinyredisclient
>
> If you like it please add this client to the list.
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Redis DB" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/redis-db/-/XdXglFfCo_oJ.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to
> redis-db+unsubscribe@googlegroups.com.

Derek Williams

unread,
Jul 10, 2012, 11:16:03 AM7/10/12
to redi...@googlegroups.com
On Tue, Jul 10, 2012 at 6:21 AM, Petr Trofimov <petro...@yandex.ru> wrote:
According to protocol, multibulk responses contain multiple bulks in themselves inside. Bulks are binary strings in fact. Which Redis command returns nested lists?

EXEC, for one. 

--
Derek Williams

Matthew Palmer

unread,
Jul 10, 2012, 1:21:36 PM7/10/12
to redi...@googlegroups.com
On Tue, Jul 10, 2012 at 05:21:04AM -0700, Petr Trofimov wrote:
> According to protocol, multibulk responses contain multiple bulks in
> themselves inside. Bulks are binary strings in fact. Which Redis command
> returns nested lists?

Yeah, that was something that I got caught by, too. As it turns out, you
can get multibulks of any type (other than another multibulk) out of various
commands, like MULTI/EXEC.

- Matt

--
"You could wire up a dead rat to a DIMM socket and the PC BIOS memory test
would pass it just fine."
-- Ethan Benson

Petr Trofimov

unread,
Jul 11, 2012, 1:50:48 AM7/11/12
to redi...@googlegroups.com

Well, thank you. Then it need to be fixed.

Petr Trofimov

unread,
Jul 11, 2012, 9:34:45 AM7/11/12
to redi...@googlegroups.com
Fixed. Wrote test for multi/exec response. That is OK.

Reply all
Reply to author
Forward
0 new messages