Skip to content

Capped Collection Feature #47

@pmaselkowski

Description

@pmaselkowski

Add @Capped annotation to support capped collection.

This should by default make capped colection, when used without params, ie:

@Capped

Or take up to two anonymous parameters:

// @Capped(int:max, int:size)
@Capped(500, 200000)

Or named parameters:

@Capped(max = 100, size = 200000)

NOTE: According to docs to create capped collection, it must be created explicitly.

db.createCollection("log", { capped : true, size : 5242880, max : 5000 } )

This info should be stored in runtime in php file, similarly as in #59.
File must be unique for each db

Perhaps some meta file with __set_state should be used.

For consistence annotation should use field capped of type CappedMeta

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions