文 | 局长
出品 | OSC开源社区(ID:oschina2013)
Redis OM for .NET:支持使用 LINQ 查询 Redis 域对象
Redis OM for Node.js:使用 TypeScript 编写,为 TypeScript 和 JavaScript 提供一级支持
Redis OM for Python:原生集成流行的 FastAPI 框架,将 FastAPI 与 Redis 结合可构建高性能 Web 服务。Redis OM Python 库还支持同步和异步使用
Redis OM for Spring:原生集成 Spring,扩展了 Spring Data Redis(提供熟悉的界面),甚至添加了对 RedisBloo 的部分支持

class Customer(HashModel):
first_name: str
last_name: str
email: EmailStr
join_date: datetime.date
age: int
bio: Optional[str]
andrew = Customer(
first_name="Andrew",
last_name="Brookins",
email="andrew.brookins@example.com",
join_date=datetime.date.today(),
age=38,
bio="Python developer, works at Redis, Inc."
)
andrew.save()
Customer.get(andrew.pk)
Customer.find((Customer.last_name == "Javayant") | (Customer.last_name == "Jagoda")).all()
END

觉得不错,请点个在看呀
文章转载自OSC开源社区,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




