Skip to content

Commit adf64e3

Browse files
update all schemas to use the key_separator
1 parent a6423b0 commit adf64e3

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

langgraph/checkpoint/redis/ashallow.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
{
3939
"index": {
4040
"name": "checkpoints",
41-
"prefix": CHECKPOINT_PREFIX + REDIS_KEY_SEPARATOR,
41+
"prefix": CHECKPOINT_PREFIX,
42+
"key_separator": REDIS_KEY_SEPARATOR,
4243
"storage_type": "json",
4344
},
4445
"fields": [
@@ -51,7 +52,8 @@
5152
{
5253
"index": {
5354
"name": "checkpoints_blobs",
54-
"prefix": CHECKPOINT_BLOB_PREFIX + REDIS_KEY_SEPARATOR,
55+
"prefix": CHECKPOINT_BLOB_PREFIX,
56+
"key_separator": REDIS_KEY_SEPARATOR,
5557
"storage_type": "json",
5658
},
5759
"fields": [
@@ -64,7 +66,8 @@
6466
{
6567
"index": {
6668
"name": "checkpoint_writes",
67-
"prefix": CHECKPOINT_WRITE_PREFIX + REDIS_KEY_SEPARATOR,
69+
"prefix": CHECKPOINT_WRITE_PREFIX,
70+
"key_separator": REDIS_KEY_SEPARATOR,
6871
"storage_type": "json",
6972
},
7073
"fields": [

langgraph/checkpoint/redis/base.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
{
3737
"index": {
3838
"name": "checkpoints",
39-
"prefix": CHECKPOINT_PREFIX + REDIS_KEY_SEPARATOR,
39+
"prefix": CHECKPOINT_PREFIX,
40+
"key_separator": REDIS_KEY_SEPARATOR,
4041
"storage_type": "json",
4142
},
4243
"fields": [
@@ -51,7 +52,8 @@
5152
{
5253
"index": {
5354
"name": "checkpoints_blobs",
54-
"prefix": CHECKPOINT_BLOB_PREFIX + REDIS_KEY_SEPARATOR,
55+
"prefix": CHECKPOINT_BLOB_PREFIX,
56+
"key_separator": REDIS_KEY_SEPARATOR,
5557
"storage_type": "json",
5658
},
5759
"fields": [
@@ -65,7 +67,8 @@
6567
{
6668
"index": {
6769
"name": "checkpoint_writes",
68-
"prefix": CHECKPOINT_WRITE_PREFIX + REDIS_KEY_SEPARATOR,
70+
"prefix": CHECKPOINT_WRITE_PREFIX,
71+
"key_separator": REDIS_KEY_SEPARATOR,
6972
"storage_type": "json",
7073
},
7174
"fields": [

langgraph/checkpoint/redis/shallow.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
{
3232
"index": {
3333
"name": "checkpoints",
34-
"prefix": CHECKPOINT_PREFIX + REDIS_KEY_SEPARATOR,
34+
"prefix": CHECKPOINT_PREFIX,
35+
"key_separator": REDIS_KEY_SEPARATOR,
3536
"storage_type": "json",
3637
},
3738
"fields": [
@@ -44,7 +45,8 @@
4445
{
4546
"index": {
4647
"name": "checkpoints_blobs",
47-
"prefix": CHECKPOINT_BLOB_PREFIX + REDIS_KEY_SEPARATOR,
48+
"prefix": CHECKPOINT_BLOB_PREFIX,
49+
"key_separator": REDIS_KEY_SEPARATOR,
4850
"storage_type": "json",
4951
},
5052
"fields": [
@@ -57,7 +59,8 @@
5759
{
5860
"index": {
5961
"name": "checkpoint_writes",
60-
"prefix": CHECKPOINT_WRITE_PREFIX + REDIS_KEY_SEPARATOR,
62+
"prefix": CHECKPOINT_WRITE_PREFIX,
63+
"key_separator": REDIS_KEY_SEPARATOR,
6164
"storage_type": "json",
6265
},
6366
"fields": [

langgraph/store/redis/base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
{
4545
"index": {
4646
"name": "store",
47-
"prefix": STORE_PREFIX + REDIS_KEY_SEPARATOR,
47+
"prefix": STORE_PREFIX,
48+
"key_separator": REDIS_KEY_SEPARATOR,
4849
"storage_type": "json",
4950
},
5051
"fields": [
@@ -57,7 +58,8 @@
5758
{
5859
"index": {
5960
"name": "store_vectors",
60-
"prefix": STORE_VECTOR_PREFIX + REDIS_KEY_SEPARATOR,
61+
"prefix": STORE_VECTOR_PREFIX,
62+
"key_separator": REDIS_KEY_SEPARATOR,
6163
"storage_type": "json",
6264
},
6365
"fields": [

0 commit comments

Comments
 (0)