kcmvp
1c9bf46244
#102 : returns ttl together with value
2023-05-18 00:41:03 +08:00
tidwall
4ac2e321b1
Use absolute expiration in peristed db file
...
This commit ensures that the absolute unix expiration timestamp
is stored for applicable records in the persisted db file.
Previously the relative seconds was stored.
fixes #85
2023-04-13 07:30:20 -07:00
tidwall
71088bcabf
Updated dependencies
2022-08-19 06:08:27 -07:00
Josh Baker
7ef22c165e
Delete FUNDING.yml
2022-05-14 10:34:10 -07:00
tidwall
c7e308e6df
Merge branch 'wrapped'
2022-04-27 17:24:56 -07:00
tidwall
5a48c10b0a
Upgraded dependencies
2022-04-27 17:12:09 -07:00
tidwall
e68e3da49b
Upgrade to Go 1.18
2022-04-27 17:08:15 -07:00
tidwall
a54244d6db
Added wrapped error
...
This commit wraps the errors that could, under rare a occasion,
cause a panic. Allowing for a graceful recover by select
conditions.
Please see #82 for more info
2022-04-27 17:05:38 -07:00
tidwall
5627a11dd1
Upgrade btree dependency
2021-12-24 04:54:31 -07:00
Josh Baker
f5d7b17e75
Merge pull request #79 from TomRoSystems/trojek-fix-readme
...
Fix example from README
2021-12-22 17:48:54 -07:00
tidwall
2af6789d67
Upgrade gjson and btree
2021-12-08 16:25:25 -07:00
Tomasz Rojek
da0b5d86c8
Fix doc iteration
2021-11-18 13:21:24 +01:00
tidwall
acb9a96694
Upgrade modules
2021-10-25 14:49:09 -07:00
Josh Baker
bc5842320e
Merge pull request #78 from tidwall/dependabot/go_modules/github.com/tidwall/gjson-1.9.3
...
Bump github.com/tidwall/gjson from 1.8.0 to 1.9.3
2021-10-25 14:38:48 -07:00
dependabot[bot]
ad612009fb
Bump github.com/tidwall/gjson from 1.8.0 to 1.9.3
...
Bumps [github.com/tidwall/gjson](https://github.com/tidwall/gjson ) from 1.8.0 to 1.9.3.
- [Release notes](https://github.com/tidwall/gjson/releases )
- [Commits](https://github.com/tidwall/gjson/compare/v1.8.0...v1.9.3 )
---
updated-dependencies:
- dependency-name: github.com/tidwall/gjson
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 19:45:33 +00:00
tidwall
f7014795e8
Minor update and new comments
2021-08-01 09:54:09 -07:00
tidwall
04bc915abd
Estimate last oof size on open
...
addresses #77
2021-07-31 19:29:49 -07:00
tidwall
0bf8239554
Share time.Now calls
2021-07-31 09:17:41 -07:00
tidwall
d4c361c59c
Use btree with non-concurrent mode
...
Minor optimization
2021-07-31 07:36:38 -07:00
Josh Baker
89544ad8fc
Update README.md
2021-06-17 07:42:00 -07:00
tidwall
e49c1a2edd
Updated dependencies
2021-06-17 07:33:29 -07:00
tidwall
b1acd463ca
Minimize new allocations
...
This commit makes the insert method reuse a variable to minimize
new allocations.
2021-06-17 07:27:04 -07:00
Josh Baker
9723e071ad
Merge pull request #75 from webscale-networks/index-overused
...
Index pattern not always honored
2021-06-17 07:12:27 -07:00
Mike Haller
97feb53ded
Index pattern not always honored
...
When creating an index with CreateIndex, a pattern is used to specify
the matching keys that should be stored in the index. It is therefore
unexpected that items that do not match the pattern will be presented to
the less function that is also supplied on CreateIndex. This change
corrects that problem by applying the pattern in two paths previously
not considered:
1. When an item is replaced in the database.
2. When an item is deleted from the database.
2021-06-15 17:26:56 -06:00
Josh Baker
ae2bcacb06
Update README.md
2021-05-09 17:20:25 -07:00
Josh Baker
ee8f673bde
Update README.md
2021-05-09 16:54:50 -07:00
tidwall
b6a74904ab
Fixes issue where a partial write can corrupt the database
2021-04-01 10:23:25 -07:00
tidwall
a41516f180
Fix reload calculation incorrect
2021-03-30 15:36:40 -07:00
tidwall
d7ed6a747a
Ignore incomplete tail commands and allow for null padding
...
This commit allows for BuntDB to load data files that were
previously considered invalid or corrupted.
Now when the data file ends with an incomplete command, the data
will be truncated at the end of the previously success command.
Also when a null control character is encountered instead of an
asterix, which indicates the start of a command, the null is
ignored and the cursor moves to the next byte. This allows for
null padding at the head and the tail.
Fixes #71
https://github.com/tidwall/tile38/issues/600
2021-03-29 14:06:22 -07:00
tidwall
4f7ef48197
Upgrade gjson
2021-03-29 14:03:54 -07:00
Josh Baker
bc1ef3e3d6
Create FUNDING.yml
2021-03-28 09:01:09 -07:00
tidwall
62d43edfcf
Updated rtree dependency
2021-02-07 17:51:10 -07:00
tidwall
ca8c0ff5d5
Upgraded dependencies
2021-02-07 17:04:06 -07:00
tidwall
c3544a778b
Updated Go packages
2021-01-25 14:57:28 -07:00
Josh Baker
001aac9135
Update README.md
2021-01-10 15:57:47 -07:00
Josh Baker
10fbc48357
Update README.md
2021-01-10 15:56:43 -07:00
Josh Baker
4aa8fb12ec
Update README.md
2021-01-10 15:56:13 -07:00
Josh Baker
00c1a6ac45
Update README.md
2021-01-10 15:53:48 -07:00
Josh Baker
7b16b21ea7
Update README.md
2021-01-10 15:45:21 -07:00
tidwall
13599ea482
Added test
2021-01-10 06:54:16 -07:00
Josh Baker
dcbe694f9e
Merge pull request #70 from Sora233/master
...
fix set transaction leak
2021-01-10 06:42:52 -07:00
sora233
6363a756c0
fix set transaction leak
2021-01-10 21:36:17 +08:00
tidwall
8724f51bb5
Update dependencies
2021-01-06 10:50:41 -07:00
tidwall
07278140d9
Fixed expires out of range
...
This commit fixes an issue where persisting a value with a
negative expires to the AOF causes the database to not load.
fixes #68
2020-12-10 08:54:47 -07:00
Josh Baker
18423895fc
Create go.yml
2020-11-03 10:55:38 -07:00
Josh Baker
d47e0a0e7d
Delete .travis.yml
2020-11-03 10:55:27 -07:00
Josh Baker
127e283d3f
Update README.md
2020-11-03 10:55:11 -07:00
tidwall
0b1a2df5f8
Updated dependencies
2020-10-27 08:55:29 -07:00
tidwall
df8cd8d232
Updated Btree implementation
2020-10-27 05:44:48 -07:00
tidwall
ba891d68e3
Updated Go version
2020-10-27 05:03:22 -07:00