Skip to content

Add redis_subscriber:Auth(), add error class and redis.IsError(), and fix returned table indices and nil values#4

Open
swampservers wants to merge 1 commit intodanielga:masterfrom
swampservers:master
Open

Add redis_subscriber:Auth(), add error class and redis.IsError(), and fix returned table indices and nil values#4
swampservers wants to merge 1 commit intodanielga:masterfrom
swampservers:master

Conversation

@swampservers
Copy link
Copy Markdown

Added redis_subscriber:Auth(password) so you can have a password on your Redis server.

In client callbacks, errors are now returned as a redis_clienterror instead of a string, so you can tell whether something is actually an error or if it's just the stored string text. redis.IsError() checks if it is an error and tostring gets the message.

Fixed returned tables having zero based indexes, and also changed null values from nil to false, so the table will always have the correct number of values with no gaps. So you can use ipairs or whatever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant