Skip to content

Commit a175967

Browse files
authored
Cleaning TODOs (#27)
* Cleaning TODOs * Updating License to MIT
1 parent 5d922e9 commit a175967

File tree

5 files changed

+21
-30
lines changed

5 files changed

+21
-30
lines changed

LICENSE

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
1-
BSD 3-Clause License
1+
MIT License
22

3-
Copyright (c) 2020, RedisTimeSeries
4-
All rights reserved.
3+
Copyright (c) 2022, Redis, inc.
54

6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
811

9-
1. Redistributions of source code must retain the above copyright notice, this
10-
list of conditions and the following disclaimer.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1114

12-
2. Redistributions in binary form must reproduce the above copyright notice,
13-
this list of conditions and the following disclaimer in the documentation
14-
and/or other materials provided with the distribution.
15-
16-
3. Neither the name of the copyright holder nor the names of its
17-
contributors may be used to endorse or promote products derived from
18-
this software without specific prior written permission.
19-
20-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/NRedisStack/Bloom/BloomCommands.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public async Task<BloomInformation> InfoAsync(RedisKey key)
104104
/// <returns>An array of booleans. Each element is either true or false depending on whether the
105105
/// corresponding input element was newly added to the filter or may have previously existed.</returns>
106106
/// <remarks><seealso href="https://redis.io/commands/bf.insert"/></remarks>
107-
public bool[] Insert(RedisKey key, RedisValue[] items, int? capacity = null, //TODO: create enother function that get one item, because right now if the user want to insert one item he needs to insert this as RedisValue[]
107+
public bool[] Insert(RedisKey key, RedisValue[] items, int? capacity = null,
108108
double? error = null, int? expansion = null,
109109
bool nocreate = false, bool nonscaling = false)
110110
{
@@ -168,7 +168,7 @@ public async Task<BloomInformation> InfoAsync(RedisKey key)
168168
/// <returns>An array of booleans. Each element is either true or false depending on whether the
169169
/// corresponding input element was newly added to the filter or may have previously existed.</returns>
170170
/// <remarks><seealso href="https://redis.io/commands/bf.insert"/></remarks>
171-
public async Task<bool[]> InsertAsync(RedisKey key, RedisValue[] items, int? capacity = null, //TODO: create enother function that get one item, because right now if the user want to insert one item he needs to insert this as RedisValue[]
171+
public async Task<bool[]> InsertAsync(RedisKey key, RedisValue[] items, int? capacity = null,
172172
double? error = null, int? expansion = null,
173173
bool nocreate = false, bool nonscaling = false)
174174
{

src/NRedisStack/TimeSeries/Literals/Enums/BucketTimestamps.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace NRedisStack.Literals.Enums
22
{
33
/// <summary>
4-
/// TODO: Add description
4+
/// controls how bucket timestamps are reported.
55
/// </summary>
66
public enum TsBucketTimestamps
77
{

src/NRedisStack/TimeSeries/Literals/Enums/Reduce.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace NRedisStack.Literals.Enums
22
{
33
/// <summary>
4-
/// TODO: Add description
4+
/// reducer type used to aggregate series that share the same label value.
55
/// </summary>
66
public enum TsReduce
77
{

src/NRedisStack/TimeSeries/TimeSeriesAux.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ public static List<object> BuildTsMgetArgs(bool latest, IReadOnlyCollection<stri
292292
return args;
293293
}
294294

295-
//TODO: add the new parameters to TS.RANGE
296295
public static List<object> BuildRangeArgs(string key,
297296
TimeStamp fromTimeStamp,
298297
TimeStamp toTimeStamp,

0 commit comments

Comments
 (0)