~ubuntu-branches/ubuntu/trusty/smuxi/trusty-proposed

« back to all changes in this revision

Viewing changes to lib/ServiceStack/src/ServiceStack.Interfaces/Redis/IRedisSortedSet.cs

  • Committer: Package Import Robot
  • Author(s): Mirco Bauer
  • Date: 2013-05-25 22:11:31 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20130525221131-nd2mc0kzubuwyx20
Tags: 0.8.11-1
* [22d13d5] Imported Upstream version 0.8.11
* [6d2b95a] Refreshed patches
* [89eb66e] Added ServiceStack libraries to smuxi-engine package
* [848ab10] Enable Campfire engine
* [c6dbdc7] Always build db4o for predictable build result
* [13ec489] Exclude OS X specific libraries from dh_clideps

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// https://github.com/mythz/ServiceStack.Redis
 
3
// ServiceStack.Redis: ECMA CLI Binding to the Redis key-value storage system
 
4
//
 
5
// Authors:
 
6
//   Demis Bellot (demis.bellot@gmail.com)
 
7
//
 
8
// Copyright 2010 Liquidbit Ltd.
 
9
//
 
10
// Licensed under the same terms of Redis and ServiceStack: new BSD license.
 
11
//
 
12
 
 
13
using System.Collections.Generic;
 
14
using ServiceStack.DesignPatterns.Model;
 
15
 
 
16
namespace ServiceStack.Redis
 
17
{
 
18
        public interface IRedisSortedSet
 
19
                : ICollection<string>, IHasStringId
 
20
        {
 
21
                List<string> GetAll();
 
22
                List<string> GetRange(int startingRank, int endingRank);
 
23
                List<string> GetRangeByScore(string fromStringScore, string toStringScore);
 
24
                List<string> GetRangeByScore(string fromStringScore, string toStringScore, int? skip, int? take);
 
25
                List<string> GetRangeByScore(double fromScore, double toScore);
 
26
                List<string> GetRangeByScore(double fromScore, double toScore, int? skip, int? take);
 
27
                void RemoveRange(int fromRank, int toRank);
 
28
                void RemoveRangeByScore(double fromScore, double toScore);
 
29
                void StoreFromIntersect(params IRedisSortedSet[] ofSets);
 
30
                void StoreFromUnion(params IRedisSortedSet[] ofSets);
 
31
                int GetItemIndex(string value);
 
32
                double GetItemScore(string value);
 
33
                void IncrementItemScore(string value, double incrementByScore);
 
34
                string PopItemWithHighestScore();
 
35
                string PopItemWithLowestScore();
 
36
        }
 
37
}
 
 
b'\\ No newline at end of file'