Skip to content

lpush, rpush api inconsistent. #8

@namreg

Description

@namreg

I found lpush, rpush api inconsistent.

// RPush appends a new value(s) to the list stored at the given key.
func (c *Client) RPush(key, value string, values ...string) StatusResult
//LPush prepends a new value to the list stored at the given key.
func (c *Client) LPush(key, value string) StatusResult

I think setting the api this way will make it more comfortable to use.

func (c *Client) RPush(key, values ...string) StatusResult

Originally posted by @fangpianqi in #5 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions