PageRenderTime 1164ms CodeModel.GetById 1158ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/man/redisLPush.Rd

http://github.com/bwlewis/rredis
Unknown | 45 lines | 45 code | 0 blank | 0 comment | 0 complexity | 4fbbcea9e729acfc9387ca0a6b5be196 MD5 | raw file
 1\name{redisLPush}
 2\alias{redisLPush}
 3\alias{redisRPush}
 4\title{Add a value to the head tail of a list.
 5}
 6\description{
 7Add values to the tail (LPush) or head (RPush) of a list
 8corresponding to the specified key.
 9}
10\usage{
11redisLPush(key, value, ...)
12}
13\arguments{
14  \item{key}{The desired key corresponding to a list.}
15  \item{value}{The element to add to the list.}
16  \item{...}{Optional additional values to add to the list.}
17}
18\details{
19If the key does not exist an empty list is created just before the 
20append operation. If the key exists but is not a list an error is returned.
21}
22\value{
23The length of the list after the push operation.
24}
25\references{
26http://redis.io/commands
27}
28\author{
29B. W. Lewis
30}
31\seealso{
32\code{\link{redisRPush}}
33}
34\examples{
35\dontrun{
36redisConnect()
37redisLPush('x',1)
38redisLPush('x',2)
39redisLPush('x',3)
40redisRPush('x',11)
41redisRPush('x',21)
42redisRPush('x',31)
43redisLLen('x')
44}
45}