GithubHelp home page GithubHelp logo

azjezz / waffle Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 0.0 458 KB

[ABANDONED] use nuxed instead

Home Page: https://github.com/nuxed/framework

License: MIT License

Hack 100.00%
hacklang hhvm framework waffle middleware

waffle's Introduction

[ABANDONED] use Nuxed instead

waffle's People

Contributors

azjezz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

waffle's Issues

Async Contracts

i think it would be best to take advantage of Hack's async in some places here.

These contracts can be async, and probably should :

interface CacheItemPoolInterface extends ResetInterface
{
    public function getItem(string $key): Awaitable<CacheItemInterface>;

    public function getItems(Container<string> $keys = vec[]): Awaitable<KeyedContainer<string, CacheItemInterface>>;

    public function hasItem(string $key): Awaitable<bool>;

    public function clear(): Awaitable<bool>;

    public function deleteItem(string $key):  Awaitable<bool>;

    public function deleteItems(Container<string> $keys):  Awaitable<bool>;

    public function save(CacheItemInterface $item):  Awaitable<bool>;

    public function commit(): Awaitable<bool>;
}
interface CacheInterface
{
    public function get(string $key, mixed $default = null): Awaitable<mixed>;

    public function set(string $key, mixed $value, ?DateInterval $ttl = null): Awaitable<bool>;

    public function delete(string $key): Awaitable<bool>;

    public function clear(): Awaitable<bool>;

    public function getMultiple(Container<string> $keys,mixed $default = null): Awaitable<KeyedContainer<string, mixed>>;

    public function setMultiple(KeyedContainer<string, mixed> $values,?DateInterval $ttl = null): Awaitable<bool>;

    public function deleteMultiple(Container<string> $keys): Awaitable<bool>;

    public function has(string $key): Awaitable<bool>;
}
interface EventDispatcherInterface extends ResetInterface
{
    ...
    /**
     * Dispatch an event and call the listeners.
     */
    public function dispatch(EventInterface $event): Awaitable<EventInterface>;
    ...
}
interface RequestHandlerInterface
{
    /**
     * Handle the request and return a response.
     */
    public function handle(ServerRequestInterface $request): Awaitable<ResponseInterface>;
}
interface MiddlewareInterface
{
    /**
     * Process an incoming server request and return a response, optionally delegating
     * response creation to a handler.
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): Awaitable<ResponseInterface>;
}

never been so satisfied

literaly ten outa ten project no issues experienced, gotta say. keep it up definitely would receomend

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.